Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netdev: pass the stuck queue to the timeout handler

This allows incrementing the correct timeout statistic without any mess.
Down the road, devices can learn to reset just the specific queue.

The patch was generated with the following script:

use strict;
use warnings;

our $^I = '.bak';

my @work = (
["arch/m68k/emu/nfeth.c", "nfeth_tx_timeout"],
["arch/um/drivers/net_kern.c", "uml_net_tx_timeout"],
["arch/um/drivers/vector_kern.c", "vector_net_tx_timeout"],
["arch/xtensa/platforms/iss/network.c", "iss_net_tx_timeout"],
["drivers/char/pcmcia/synclink_cs.c", "hdlcdev_tx_timeout"],
["drivers/infiniband/ulp/ipoib/ipoib_main.c", "ipoib_timeout"],
["drivers/infiniband/ulp/ipoib/ipoib_main.c", "ipoib_timeout"],
["drivers/message/fusion/mptlan.c", "mpt_lan_tx_timeout"],
["drivers/misc/sgi-xp/xpnet.c", "xpnet_dev_tx_timeout"],
["drivers/net/appletalk/cops.c", "cops_timeout"],
["drivers/net/arcnet/arcdevice.h", "arcnet_timeout"],
["drivers/net/arcnet/arcnet.c", "arcnet_timeout"],
["drivers/net/arcnet/com20020.c", "arcnet_timeout"],
["drivers/net/ethernet/3com/3c509.c", "el3_tx_timeout"],
["drivers/net/ethernet/3com/3c515.c", "corkscrew_timeout"],
["drivers/net/ethernet/3com/3c574_cs.c", "el3_tx_timeout"],
["drivers/net/ethernet/3com/3c589_cs.c", "el3_tx_timeout"],
["drivers/net/ethernet/3com/3c59x.c", "vortex_tx_timeout"],
["drivers/net/ethernet/3com/3c59x.c", "vortex_tx_timeout"],
["drivers/net/ethernet/3com/typhoon.c", "typhoon_tx_timeout"],
["drivers/net/ethernet/8390/8390.h", "ei_tx_timeout"],
["drivers/net/ethernet/8390/8390.h", "eip_tx_timeout"],
["drivers/net/ethernet/8390/8390.c", "ei_tx_timeout"],
["drivers/net/ethernet/8390/8390p.c", "eip_tx_timeout"],
["drivers/net/ethernet/8390/ax88796.c", "ax_ei_tx_timeout"],
["drivers/net/ethernet/8390/axnet_cs.c", "axnet_tx_timeout"],
["drivers/net/ethernet/8390/etherh.c", "__ei_tx_timeout"],
["drivers/net/ethernet/8390/hydra.c", "__ei_tx_timeout"],
["drivers/net/ethernet/8390/mac8390.c", "__ei_tx_timeout"],
["drivers/net/ethernet/8390/mcf8390.c", "__ei_tx_timeout"],
["drivers/net/ethernet/8390/lib8390.c", "__ei_tx_timeout"],
["drivers/net/ethernet/8390/ne2k-pci.c", "ei_tx_timeout"],
["drivers/net/ethernet/8390/pcnet_cs.c", "ei_tx_timeout"],
["drivers/net/ethernet/8390/smc-ultra.c", "ei_tx_timeout"],
["drivers/net/ethernet/8390/wd.c", "ei_tx_timeout"],
["drivers/net/ethernet/8390/zorro8390.c", "__ei_tx_timeout"],
["drivers/net/ethernet/adaptec/starfire.c", "tx_timeout"],
["drivers/net/ethernet/agere/et131x.c", "et131x_tx_timeout"],
["drivers/net/ethernet/allwinner/sun4i-emac.c", "emac_timeout"],
["drivers/net/ethernet/alteon/acenic.c", "ace_watchdog"],
["drivers/net/ethernet/amazon/ena/ena_netdev.c", "ena_tx_timeout"],
["drivers/net/ethernet/amd/7990.h", "lance_tx_timeout"],
["drivers/net/ethernet/amd/7990.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/a2065.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/am79c961a.c", "am79c961_timeout"],
["drivers/net/ethernet/amd/amd8111e.c", "amd8111e_tx_timeout"],
["drivers/net/ethernet/amd/ariadne.c", "ariadne_tx_timeout"],
["drivers/net/ethernet/amd/atarilance.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/au1000_eth.c", "au1000_tx_timeout"],
["drivers/net/ethernet/amd/declance.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/lance.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/mvme147.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/ni65.c", "ni65_timeout"],
["drivers/net/ethernet/amd/nmclan_cs.c", "mace_tx_timeout"],
["drivers/net/ethernet/amd/pcnet32.c", "pcnet32_tx_timeout"],
["drivers/net/ethernet/amd/sunlance.c", "lance_tx_timeout"],
["drivers/net/ethernet/amd/xgbe/xgbe-drv.c", "xgbe_tx_timeout"],
["drivers/net/ethernet/apm/xgene-v2/main.c", "xge_timeout"],
["drivers/net/ethernet/apm/xgene/xgene_enet_main.c", "xgene_enet_timeout"],
["drivers/net/ethernet/apple/macmace.c", "mace_tx_timeout"],
["drivers/net/ethernet/atheros/ag71xx.c", "ag71xx_tx_timeout"],
["drivers/net/ethernet/atheros/alx/main.c", "alx_tx_timeout"],
["drivers/net/ethernet/atheros/atl1c/atl1c_main.c", "atl1c_tx_timeout"],
["drivers/net/ethernet/atheros/atl1e/atl1e_main.c", "atl1e_tx_timeout"],
["drivers/net/ethernet/atheros/atlx/atl.c", "atlx_tx_timeout"],
["drivers/net/ethernet/atheros/atlx/atl1.c", "atlx_tx_timeout"],
["drivers/net/ethernet/atheros/atlx/atl2.c", "atl2_tx_timeout"],
["drivers/net/ethernet/broadcom/b44.c", "b44_tx_timeout"],
["drivers/net/ethernet/broadcom/bcmsysport.c", "bcm_sysport_tx_timeout"],
["drivers/net/ethernet/broadcom/bnx2.c", "bnx2_tx_timeout"],
["drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h", "bnx2x_tx_timeout"],
["drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c", "bnx2x_tx_timeout"],
["drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c", "bnx2x_tx_timeout"],
["drivers/net/ethernet/broadcom/bnxt/bnxt.c", "bnxt_tx_timeout"],
["drivers/net/ethernet/broadcom/genet/bcmgenet.c", "bcmgenet_timeout"],
["drivers/net/ethernet/broadcom/sb1250-mac.c", "sbmac_tx_timeout"],
["drivers/net/ethernet/broadcom/tg3.c", "tg3_tx_timeout"],
["drivers/net/ethernet/calxeda/xgmac.c", "xgmac_tx_timeout"],
["drivers/net/ethernet/cavium/liquidio/lio_main.c", "liquidio_tx_timeout"],
["drivers/net/ethernet/cavium/liquidio/lio_vf_main.c", "liquidio_tx_timeout"],
["drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c", "lio_vf_rep_tx_timeout"],
["drivers/net/ethernet/cavium/thunder/nicvf_main.c", "nicvf_tx_timeout"],
["drivers/net/ethernet/cirrus/cs89x0.c", "net_timeout"],
["drivers/net/ethernet/cisco/enic/enic_main.c", "enic_tx_timeout"],
["drivers/net/ethernet/cisco/enic/enic_main.c", "enic_tx_timeout"],
["drivers/net/ethernet/cortina/gemini.c", "gmac_tx_timeout"],
["drivers/net/ethernet/davicom/dm9000.c", "dm9000_timeout"],
["drivers/net/ethernet/dec/tulip/de2104x.c", "de_tx_timeout"],
["drivers/net/ethernet/dec/tulip/tulip_core.c", "tulip_tx_timeout"],
["drivers/net/ethernet/dec/tulip/winbond-840.c", "tx_timeout"],
["drivers/net/ethernet/dlink/dl2k.c", "rio_tx_timeout"],
["drivers/net/ethernet/dlink/sundance.c", "tx_timeout"],
["drivers/net/ethernet/emulex/benet/be_main.c", "be_tx_timeout"],
["drivers/net/ethernet/ethoc.c", "ethoc_tx_timeout"],
["drivers/net/ethernet/faraday/ftgmac100.c", "ftgmac100_tx_timeout"],
["drivers/net/ethernet/fealnx.c", "fealnx_tx_timeout"],
["drivers/net/ethernet/freescale/dpaa/dpaa_eth.c", "dpaa_tx_timeout"],
["drivers/net/ethernet/freescale/fec_main.c", "fec_timeout"],
["drivers/net/ethernet/freescale/fec_mpc52xx.c", "mpc52xx_fec_tx_timeout"],
["drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c", "fs_timeout"],
["drivers/net/ethernet/freescale/gianfar.c", "gfar_timeout"],
["drivers/net/ethernet/freescale/ucc_geth.c", "ucc_geth_timeout"],
["drivers/net/ethernet/fujitsu/fmvj18x_cs.c", "fjn_tx_timeout"],
["drivers/net/ethernet/google/gve/gve_main.c", "gve_tx_timeout"],
["drivers/net/ethernet/hisilicon/hip04_eth.c", "hip04_timeout"],
["drivers/net/ethernet/hisilicon/hix5hd2_gmac.c", "hix5hd2_net_timeout"],
["drivers/net/ethernet/hisilicon/hns/hns_enet.c", "hns_nic_net_timeout"],
["drivers/net/ethernet/hisilicon/hns3/hns3_enet.c", "hns3_nic_net_timeout"],
["drivers/net/ethernet/huawei/hinic/hinic_main.c", "hinic_tx_timeout"],
["drivers/net/ethernet/i825xx/82596.c", "i596_tx_timeout"],
["drivers/net/ethernet/i825xx/ether1.c", "ether1_timeout"],
["drivers/net/ethernet/i825xx/lib82596.c", "i596_tx_timeout"],
["drivers/net/ethernet/i825xx/sun3_82586.c", "sun3_82586_timeout"],
["drivers/net/ethernet/ibm/ehea/ehea_main.c", "ehea_tx_watchdog"],
["drivers/net/ethernet/ibm/emac/core.c", "emac_tx_timeout"],
["drivers/net/ethernet/ibm/emac/core.c", "emac_tx_timeout"],
["drivers/net/ethernet/ibm/ibmvnic.c", "ibmvnic_tx_timeout"],
["drivers/net/ethernet/intel/e100.c", "e100_tx_timeout"],
["drivers/net/ethernet/intel/e1000/e1000_main.c", "e1000_tx_timeout"],
["drivers/net/ethernet/intel/e1000e/netdev.c", "e1000_tx_timeout"],
["drivers/net/ethernet/intel/fm10k/fm10k_netdev.c", "fm10k_tx_timeout"],
["drivers/net/ethernet/intel/i40e/i40e_main.c", "i40e_tx_timeout"],
["drivers/net/ethernet/intel/iavf/iavf_main.c", "iavf_tx_timeout"],
["drivers/net/ethernet/intel/ice/ice_main.c", "ice_tx_timeout"],
["drivers/net/ethernet/intel/ice/ice_main.c", "ice_tx_timeout"],
["drivers/net/ethernet/intel/igb/igb_main.c", "igb_tx_timeout"],
["drivers/net/ethernet/intel/igbvf/netdev.c", "igbvf_tx_timeout"],
["drivers/net/ethernet/intel/ixgb/ixgb_main.c", "ixgb_tx_timeout"],
["drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c", "adapter->netdev->netdev_ops->ndo_tx_timeout(adapter->netdev);"],
["drivers/net/ethernet/intel/ixgbe/ixgbe_main.c", "ixgbe_tx_timeout"],
["drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c", "ixgbevf_tx_timeout"],
["drivers/net/ethernet/jme.c", "jme_tx_timeout"],
["drivers/net/ethernet/korina.c", "korina_tx_timeout"],
["drivers/net/ethernet/lantiq_etop.c", "ltq_etop_tx_timeout"],
["drivers/net/ethernet/marvell/mv643xx_eth.c", "mv643xx_eth_tx_timeout"],
["drivers/net/ethernet/marvell/pxa168_eth.c", "pxa168_eth_tx_timeout"],
["drivers/net/ethernet/marvell/skge.c", "skge_tx_timeout"],
["drivers/net/ethernet/marvell/sky2.c", "sky2_tx_timeout"],
["drivers/net/ethernet/marvell/sky2.c", "sky2_tx_timeout"],
["drivers/net/ethernet/mediatek/mtk_eth_soc.c", "mtk_tx_timeout"],
["drivers/net/ethernet/mellanox/mlx4/en_netdev.c", "mlx4_en_tx_timeout"],
["drivers/net/ethernet/mellanox/mlx4/en_netdev.c", "mlx4_en_tx_timeout"],
["drivers/net/ethernet/mellanox/mlx5/core/en_main.c", "mlx5e_tx_timeout"],
["drivers/net/ethernet/micrel/ks8842.c", "ks8842_tx_timeout"],
["drivers/net/ethernet/micrel/ksz884x.c", "netdev_tx_timeout"],
["drivers/net/ethernet/microchip/enc28j60.c", "enc28j60_tx_timeout"],
["drivers/net/ethernet/microchip/encx24j600.c", "encx24j600_tx_timeout"],
["drivers/net/ethernet/natsemi/sonic.h", "sonic_tx_timeout"],
["drivers/net/ethernet/natsemi/sonic.c", "sonic_tx_timeout"],
["drivers/net/ethernet/natsemi/jazzsonic.c", "sonic_tx_timeout"],
["drivers/net/ethernet/natsemi/macsonic.c", "sonic_tx_timeout"],
["drivers/net/ethernet/natsemi/natsemi.c", "ns_tx_timeout"],
["drivers/net/ethernet/natsemi/ns83820.c", "ns83820_tx_timeout"],
["drivers/net/ethernet/natsemi/xtsonic.c", "sonic_tx_timeout"],
["drivers/net/ethernet/neterion/s2io.h", "s2io_tx_watchdog"],
["drivers/net/ethernet/neterion/s2io.c", "s2io_tx_watchdog"],
["drivers/net/ethernet/neterion/vxge/vxge-main.c", "vxge_tx_watchdog"],
["drivers/net/ethernet/netronome/nfp/nfp_net_common.c", "nfp_net_tx_timeout"],
["drivers/net/ethernet/nvidia/forcedeth.c", "nv_tx_timeout"],
["drivers/net/ethernet/nvidia/forcedeth.c", "nv_tx_timeout"],
["drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c", "pch_gbe_tx_timeout"],
["drivers/net/ethernet/packetengines/hamachi.c", "hamachi_tx_timeout"],
["drivers/net/ethernet/packetengines/yellowfin.c", "yellowfin_tx_timeout"],
["drivers/net/ethernet/pensando/ionic/ionic_lif.c", "ionic_tx_timeout"],
["drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c", "netxen_tx_timeout"],
["drivers/net/ethernet/qlogic/qla3xxx.c", "ql3xxx_tx_timeout"],
["drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c", "qlcnic_tx_timeout"],
["drivers/net/ethernet/qualcomm/emac/emac.c", "emac_tx_timeout"],
["drivers/net/ethernet/qualcomm/qca_spi.c", "qcaspi_netdev_tx_timeout"],
["drivers/net/ethernet/qualcomm/qca_uart.c", "qcauart_netdev_tx_timeout"],
["drivers/net/ethernet/rdc/r6040.c", "r6040_tx_timeout"],
["drivers/net/ethernet/realtek/8139cp.c", "cp_tx_timeout"],
["drivers/net/ethernet/realtek/8139too.c", "rtl8139_tx_timeout"],
["drivers/net/ethernet/realtek/atp.c", "tx_timeout"],
["drivers/net/ethernet/realtek/r8169_main.c", "rtl8169_tx_timeout"],
["drivers/net/ethernet/renesas/ravb_main.c", "ravb_tx_timeout"],
["drivers/net/ethernet/renesas/sh_eth.c", "sh_eth_tx_timeout"],
["drivers/net/ethernet/renesas/sh_eth.c", "sh_eth_tx_timeout"],
["drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c", "sxgbe_tx_timeout"],
["drivers/net/ethernet/seeq/ether3.c", "ether3_timeout"],
["drivers/net/ethernet/seeq/sgiseeq.c", "timeout"],
["drivers/net/ethernet/sfc/efx.c", "efx_watchdog"],
["drivers/net/ethernet/sfc/falcon/efx.c", "ef4_watchdog"],
["drivers/net/ethernet/sgi/ioc3-eth.c", "ioc3_timeout"],
["drivers/net/ethernet/sgi/meth.c", "meth_tx_timeout"],
["drivers/net/ethernet/silan/sc92031.c", "sc92031_tx_timeout"],
["drivers/net/ethernet/sis/sis190.c", "sis190_tx_timeout"],
["drivers/net/ethernet/sis/sis900.c", "sis900_tx_timeout"],
["drivers/net/ethernet/smsc/epic100.c", "epic_tx_timeout"],
["drivers/net/ethernet/smsc/smc911x.c", "smc911x_timeout"],
["drivers/net/ethernet/smsc/smc9194.c", "smc_timeout"],
["drivers/net/ethernet/smsc/smc91c92_cs.c", "smc_tx_timeout"],
["drivers/net/ethernet/smsc/smc91x.c", "smc_timeout"],
["drivers/net/ethernet/stmicro/stmmac/stmmac_main.c", "stmmac_tx_timeout"],
["drivers/net/ethernet/sun/cassini.c", "cas_tx_timeout"],
["drivers/net/ethernet/sun/ldmvsw.c", "sunvnet_tx_timeout_common"],
["drivers/net/ethernet/sun/niu.c", "niu_tx_timeout"],
["drivers/net/ethernet/sun/sunbmac.c", "bigmac_tx_timeout"],
["drivers/net/ethernet/sun/sungem.c", "gem_tx_timeout"],
["drivers/net/ethernet/sun/sunhme.c", "happy_meal_tx_timeout"],
["drivers/net/ethernet/sun/sunqe.c", "qe_tx_timeout"],
["drivers/net/ethernet/sun/sunvnet.c", "sunvnet_tx_timeout_common"],
["drivers/net/ethernet/sun/sunvnet_common.c", "sunvnet_tx_timeout_common"],
["drivers/net/ethernet/sun/sunvnet_common.h", "sunvnet_tx_timeout_common"],
["drivers/net/ethernet/synopsys/dwc-xlgmac-net.c", "xlgmac_tx_timeout"],
["drivers/net/ethernet/ti/cpmac.c", "cpmac_tx_timeout"],
["drivers/net/ethernet/ti/cpsw.c", "cpsw_ndo_tx_timeout"],
["drivers/net/ethernet/ti/cpsw_priv.c", "cpsw_ndo_tx_timeout"],
["drivers/net/ethernet/ti/cpsw_priv.h", "cpsw_ndo_tx_timeout"],
["drivers/net/ethernet/ti/davinci_emac.c", "emac_dev_tx_timeout"],
["drivers/net/ethernet/ti/netcp_core.c", "netcp_ndo_tx_timeout"],
["drivers/net/ethernet/ti/tlan.c", "tlan_tx_timeout"],
["drivers/net/ethernet/toshiba/ps3_gelic_net.h", "gelic_net_tx_timeout"],
["drivers/net/ethernet/toshiba/ps3_gelic_net.c", "gelic_net_tx_timeout"],
["drivers/net/ethernet/toshiba/ps3_gelic_wireless.c", "gelic_net_tx_timeout"],
["drivers/net/ethernet/toshiba/spider_net.c", "spider_net_tx_timeout"],
["drivers/net/ethernet/toshiba/tc35815.c", "tc35815_tx_timeout"],
["drivers/net/ethernet/via/via-rhine.c", "rhine_tx_timeout"],
["drivers/net/ethernet/wiznet/w5100.c", "w5100_tx_timeout"],
["drivers/net/ethernet/wiznet/w5300.c", "w5300_tx_timeout"],
["drivers/net/ethernet/xilinx/xilinx_emaclite.c", "xemaclite_tx_timeout"],
["drivers/net/ethernet/xircom/xirc2ps_cs.c", "xirc_tx_timeout"],
["drivers/net/fjes/fjes_main.c", "fjes_tx_retry"],
["drivers/net/slip/slip.c", "sl_tx_timeout"],
["include/linux/usb/usbnet.h", "usbnet_tx_timeout"],
["drivers/net/usb/aqc111.c", "usbnet_tx_timeout"],
["drivers/net/usb/asix_devices.c", "usbnet_tx_timeout"],
["drivers/net/usb/asix_devices.c", "usbnet_tx_timeout"],
["drivers/net/usb/asix_devices.c", "usbnet_tx_timeout"],
["drivers/net/usb/ax88172a.c", "usbnet_tx_timeout"],
["drivers/net/usb/ax88179_178a.c", "usbnet_tx_timeout"],
["drivers/net/usb/catc.c", "catc_tx_timeout"],
["drivers/net/usb/cdc_mbim.c", "usbnet_tx_timeout"],
["drivers/net/usb/cdc_ncm.c", "usbnet_tx_timeout"],
["drivers/net/usb/dm9601.c", "usbnet_tx_timeout"],
["drivers/net/usb/hso.c", "hso_net_tx_timeout"],
["drivers/net/usb/int51x1.c", "usbnet_tx_timeout"],
["drivers/net/usb/ipheth.c", "ipheth_tx_timeout"],
["drivers/net/usb/kaweth.c", "kaweth_tx_timeout"],
["drivers/net/usb/lan78xx.c", "lan78xx_tx_timeout"],
["drivers/net/usb/mcs7830.c", "usbnet_tx_timeout"],
["drivers/net/usb/pegasus.c", "pegasus_tx_timeout"],
["drivers/net/usb/qmi_wwan.c", "usbnet_tx_timeout"],
["drivers/net/usb/r8152.c", "rtl8152_tx_timeout"],
["drivers/net/usb/rndis_host.c", "usbnet_tx_timeout"],
["drivers/net/usb/rtl8150.c", "rtl8150_tx_timeout"],
["drivers/net/usb/sierra_net.c", "usbnet_tx_timeout"],
["drivers/net/usb/smsc75xx.c", "usbnet_tx_timeout"],
["drivers/net/usb/smsc95xx.c", "usbnet_tx_timeout"],
["drivers/net/usb/sr9700.c", "usbnet_tx_timeout"],
["drivers/net/usb/sr9800.c", "usbnet_tx_timeout"],
["drivers/net/usb/usbnet.c", "usbnet_tx_timeout"],
["drivers/net/vmxnet3/vmxnet3_drv.c", "vmxnet3_tx_timeout"],
["drivers/net/wan/cosa.c", "cosa_net_timeout"],
["drivers/net/wan/farsync.c", "fst_tx_timeout"],
["drivers/net/wan/fsl_ucc_hdlc.c", "uhdlc_tx_timeout"],
["drivers/net/wan/lmc/lmc_main.c", "lmc_driver_timeout"],
["drivers/net/wan/x25_asy.c", "x25_asy_timeout"],
["drivers/net/wimax/i2400m/netdev.c", "i2400m_tx_timeout"],
["drivers/net/wireless/intel/ipw2x00/ipw2100.c", "ipw2100_tx_timeout"],
["drivers/net/wireless/intersil/hostap/hostap_main.c", "prism2_tx_timeout"],
["drivers/net/wireless/intersil/hostap/hostap_main.c", "prism2_tx_timeout"],
["drivers/net/wireless/intersil/hostap/hostap_main.c", "prism2_tx_timeout"],
["drivers/net/wireless/intersil/orinoco/main.c", "orinoco_tx_timeout"],
["drivers/net/wireless/intersil/orinoco/orinoco_usb.c", "orinoco_tx_timeout"],
["drivers/net/wireless/intersil/orinoco/orinoco.h", "orinoco_tx_timeout"],
["drivers/net/wireless/intersil/prism54/islpci_dev.c", "islpci_eth_tx_timeout"],
["drivers/net/wireless/intersil/prism54/islpci_eth.c", "islpci_eth_tx_timeout"],
["drivers/net/wireless/intersil/prism54/islpci_eth.h", "islpci_eth_tx_timeout"],
["drivers/net/wireless/marvell/mwifiex/main.c", "mwifiex_tx_timeout"],
["drivers/net/wireless/quantenna/qtnfmac/core.c", "qtnf_netdev_tx_timeout"],
["drivers/net/wireless/quantenna/qtnfmac/core.h", "qtnf_netdev_tx_timeout"],
["drivers/net/wireless/rndis_wlan.c", "usbnet_tx_timeout"],
["drivers/net/wireless/wl3501_cs.c", "wl3501_tx_timeout"],
["drivers/net/wireless/zydas/zd1201.c", "zd1201_tx_timeout"],
["drivers/s390/net/qeth_core.h", "qeth_tx_timeout"],
["drivers/s390/net/qeth_core_main.c", "qeth_tx_timeout"],
["drivers/s390/net/qeth_l2_main.c", "qeth_tx_timeout"],
["drivers/s390/net/qeth_l2_main.c", "qeth_tx_timeout"],
["drivers/s390/net/qeth_l3_main.c", "qeth_tx_timeout"],
["drivers/s390/net/qeth_l3_main.c", "qeth_tx_timeout"],
["drivers/staging/ks7010/ks_wlan_net.c", "ks_wlan_tx_timeout"],
["drivers/staging/qlge/qlge_main.c", "qlge_tx_timeout"],
["drivers/staging/rtl8192e/rtl8192e/rtl_core.c", "_rtl92e_tx_timeout"],
["drivers/staging/rtl8192u/r8192U_core.c", "tx_timeout"],
["drivers/staging/unisys/visornic/visornic_main.c", "visornic_xmit_timeout"],
["drivers/staging/wlan-ng/p80211netdev.c", "p80211knetdev_tx_timeout"],
["drivers/tty/n_gsm.c", "gsm_mux_net_tx_timeout"],
["drivers/tty/synclink.c", "hdlcdev_tx_timeout"],
["drivers/tty/synclink_gt.c", "hdlcdev_tx_timeout"],
["drivers/tty/synclinkmp.c", "hdlcdev_tx_timeout"],
["net/atm/lec.c", "lec_tx_timeout"],
["net/bluetooth/bnep/netdev.c", "bnep_net_timeout"]
);

for my $p (@work) {
my @pair = @$p;
my $file = $pair[0];
my $func = $pair[1];
print STDERR $file , ": ", $func,"\n";
our @ARGV = ($file);
while (<ARGV>) {
if (m/($func\s*\(struct\s+net_device\s+\*[A-Za-z_]?[A-Za-z-0-9_]*)(\))/) {
print STDERR "found $1+$2 in $file\n";
}
if (s/($func\s*\(struct\s+net_device\s+\*[A-Za-z_]?[A-Za-z-0-9_]*)(\))/$1, unsigned int txqueue$2/) {
print STDERR "$func found in $file\n";
}
print;
}
}

where the list of files and functions is simply from:

git grep ndo_tx_timeout, with manual addition of headers
in the rare cases where the function is from a header,
then manually changing the few places which actually
call ndo_tx_timeout.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Reviewed-by: Martin Habets <mhabets@solarflare.com>

changes from v9:
fixup a forward declaration
changes from v9:
more leftovers from v3 change
changes from v8:
fix up a missing direct call to timeout
rebased on net-next
changes from v7:
fixup leftovers from v3 change
changes from v6:
fix typo in rtl driver
changes from v5:
add missing files (allow any net device argument name)
changes from v4:
add a missing driver header
changes from v3:
change queue # to unsigned
Changes from v2:
added headers
Changes from v1:
Fix errors found by kbuild:
generalize the pattern a bit, to pick up
a couple of instances missed by the previous
version.

Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michael S. Tsirkin and committed by
David S. Miller
0290bd29 355979de

+298 -295
+1 -1
arch/m68k/emu/nfeth.c
··· 167 167 return 0; 168 168 } 169 169 170 - static void nfeth_tx_timeout(struct net_device *dev) 170 + static void nfeth_tx_timeout(struct net_device *dev, unsigned int txqueue) 171 171 { 172 172 dev->stats.tx_errors++; 173 173 netif_wake_queue(dev);
+1 -1
arch/um/drivers/net_kern.c
··· 247 247 return; 248 248 } 249 249 250 - static void uml_net_tx_timeout(struct net_device *dev) 250 + static void uml_net_tx_timeout(struct net_device *dev, unsigned int txqueue) 251 251 { 252 252 netif_trans_update(dev); 253 253 netif_wake_queue(dev);
+1 -1
arch/um/drivers/vector_kern.c
··· 1332 1332 return; 1333 1333 } 1334 1334 1335 - static void vector_net_tx_timeout(struct net_device *dev) 1335 + static void vector_net_tx_timeout(struct net_device *dev, unsigned int txqueue) 1336 1336 { 1337 1337 struct vector_private *vp = netdev_priv(dev); 1338 1338
+1 -1
arch/xtensa/platforms/iss/network.c
··· 455 455 { 456 456 } 457 457 458 - static void iss_net_tx_timeout(struct net_device *dev) 458 + static void iss_net_tx_timeout(struct net_device *dev, unsigned int txqueue) 459 459 { 460 460 } 461 461
+1 -1
drivers/infiniband/ulp/ipoib/ipoib_main.c
··· 1182 1182 return NETDEV_TX_OK; 1183 1183 } 1184 1184 1185 - static void ipoib_timeout(struct net_device *dev) 1185 + static void ipoib_timeout(struct net_device *dev, unsigned int txqueue) 1186 1186 { 1187 1187 struct ipoib_dev_priv *priv = ipoib_priv(dev); 1188 1188
+1 -1
drivers/message/fusion/mptlan.c
··· 552 552 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 553 553 /* Tx timeout handler. */ 554 554 static void 555 - mpt_lan_tx_timeout(struct net_device *dev) 555 + mpt_lan_tx_timeout(struct net_device *dev, unsigned int txqueue) 556 556 { 557 557 struct mpt_lan_priv *priv = netdev_priv(dev); 558 558 MPT_ADAPTER *mpt_dev = priv->mpt_dev;
+1 -1
drivers/misc/sgi-xp/xpnet.c
··· 496 496 * Deal with transmit timeouts coming from the network layer. 497 497 */ 498 498 static void 499 - xpnet_dev_tx_timeout(struct net_device *dev) 499 + xpnet_dev_tx_timeout(struct net_device *dev, unsigned int txqueue) 500 500 { 501 501 dev->stats.tx_errors++; 502 502 }
+2 -2
drivers/net/appletalk/cops.c
··· 189 189 190 190 static irqreturn_t cops_interrupt (int irq, void *dev_id); 191 191 static void cops_poll(struct timer_list *t); 192 - static void cops_timeout(struct net_device *dev); 192 + static void cops_timeout(struct net_device *dev, unsigned int txqueue); 193 193 static void cops_rx (struct net_device *dev); 194 194 static netdev_tx_t cops_send_packet (struct sk_buff *skb, 195 195 struct net_device *dev); ··· 844 844 netif_rx(skb); 845 845 } 846 846 847 - static void cops_timeout(struct net_device *dev) 847 + static void cops_timeout(struct net_device *dev, unsigned int txqueue) 848 848 { 849 849 struct cops_local *lp = netdev_priv(dev); 850 850 int ioaddr = dev->base_addr;
+1 -1
drivers/net/arcnet/arcdevice.h
··· 356 356 int arcnet_close(struct net_device *dev); 357 357 netdev_tx_t arcnet_send_packet(struct sk_buff *skb, 358 358 struct net_device *dev); 359 - void arcnet_timeout(struct net_device *dev); 359 + void arcnet_timeout(struct net_device *dev, unsigned int txqueue); 360 360 361 361 /* I/O equivalents */ 362 362
+1 -1
drivers/net/arcnet/arcnet.c
··· 763 763 } 764 764 765 765 /* Called by the kernel when transmit times out */ 766 - void arcnet_timeout(struct net_device *dev) 766 + void arcnet_timeout(struct net_device *dev, unsigned int txqueue) 767 767 { 768 768 unsigned long flags; 769 769 struct arcnet_local *lp = netdev_priv(dev);
+2 -2
drivers/net/ethernet/3com/3c509.c
··· 196 196 static int el3_rx(struct net_device *dev); 197 197 static int el3_close(struct net_device *dev); 198 198 static void set_multicast_list(struct net_device *dev); 199 - static void el3_tx_timeout (struct net_device *dev); 199 + static void el3_tx_timeout (struct net_device *dev, unsigned int txqueue); 200 200 static void el3_down(struct net_device *dev); 201 201 static void el3_up(struct net_device *dev); 202 202 static const struct ethtool_ops ethtool_ops; ··· 689 689 } 690 690 691 691 static void 692 - el3_tx_timeout (struct net_device *dev) 692 + el3_tx_timeout (struct net_device *dev, unsigned int txqueue) 693 693 { 694 694 int ioaddr = dev->base_addr; 695 695
+2 -2
drivers/net/ethernet/3com/3c515.c
··· 371 371 static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb, 372 372 struct net_device *dev); 373 373 static int corkscrew_rx(struct net_device *dev); 374 - static void corkscrew_timeout(struct net_device *dev); 374 + static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue); 375 375 static int boomerang_rx(struct net_device *dev); 376 376 static irqreturn_t corkscrew_interrupt(int irq, void *dev_id); 377 377 static int corkscrew_close(struct net_device *dev); ··· 961 961 #endif /* AUTOMEDIA */ 962 962 } 963 963 964 - static void corkscrew_timeout(struct net_device *dev) 964 + static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue) 965 965 { 966 966 int i; 967 967 struct corkscrew_private *vp = netdev_priv(dev);
+2 -2
drivers/net/ethernet/3com/3c574_cs.c
··· 234 234 static struct net_device_stats *el3_get_stats(struct net_device *dev); 235 235 static int el3_rx(struct net_device *dev, int worklimit); 236 236 static int el3_close(struct net_device *dev); 237 - static void el3_tx_timeout(struct net_device *dev); 237 + static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue); 238 238 static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 239 239 static void set_rx_mode(struct net_device *dev); 240 240 static void set_multicast_list(struct net_device *dev); ··· 690 690 return 0; 691 691 } 692 692 693 - static void el3_tx_timeout(struct net_device *dev) 693 + static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue) 694 694 { 695 695 unsigned int ioaddr = dev->base_addr; 696 696
+2 -2
drivers/net/ethernet/3com/3c589_cs.c
··· 173 173 static struct net_device_stats *el3_get_stats(struct net_device *dev); 174 174 static int el3_rx(struct net_device *dev); 175 175 static int el3_close(struct net_device *dev); 176 - static void el3_tx_timeout(struct net_device *dev); 176 + static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue); 177 177 static void set_rx_mode(struct net_device *dev); 178 178 static void set_multicast_list(struct net_device *dev); 179 179 static const struct ethtool_ops netdev_ethtool_ops; ··· 526 526 return 0; 527 527 } 528 528 529 - static void el3_tx_timeout(struct net_device *dev) 529 + static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue) 530 530 { 531 531 unsigned int ioaddr = dev->base_addr; 532 532
+2 -2
drivers/net/ethernet/3com/3c59x.c
··· 776 776 #ifdef CONFIG_PCI 777 777 static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 778 778 #endif 779 - static void vortex_tx_timeout(struct net_device *dev); 779 + static void vortex_tx_timeout(struct net_device *dev, unsigned int txqueue); 780 780 static void acpi_set_WOL(struct net_device *dev); 781 781 static const struct ethtool_ops vortex_ethtool_ops; 782 782 static void set_8021q_mode(struct net_device *dev, int enable); ··· 1877 1877 iowrite16(FakeIntr, ioaddr + EL3_CMD); 1878 1878 } 1879 1879 1880 - static void vortex_tx_timeout(struct net_device *dev) 1880 + static void vortex_tx_timeout(struct net_device *dev, unsigned int txqueue) 1881 1881 { 1882 1882 struct vortex_private *vp = netdev_priv(dev); 1883 1883 void __iomem *ioaddr = vp->ioaddr;
+1 -1
drivers/net/ethernet/3com/typhoon.c
··· 2013 2013 } 2014 2014 2015 2015 static void 2016 - typhoon_tx_timeout(struct net_device *dev) 2016 + typhoon_tx_timeout(struct net_device *dev, unsigned int txqueue) 2017 2017 { 2018 2018 struct typhoon *tp = netdev_priv(dev); 2019 2019
+2 -2
drivers/net/ethernet/8390/8390.c
··· 36 36 } 37 37 EXPORT_SYMBOL(ei_set_multicast_list); 38 38 39 - void ei_tx_timeout(struct net_device *dev) 39 + void ei_tx_timeout(struct net_device *dev, unsigned int txqueue) 40 40 { 41 - __ei_tx_timeout(dev); 41 + __ei_tx_timeout(dev, txqueue); 42 42 } 43 43 EXPORT_SYMBOL(ei_tx_timeout); 44 44
+2 -2
drivers/net/ethernet/8390/8390.h
··· 32 32 int ei_open(struct net_device *dev); 33 33 int ei_close(struct net_device *dev); 34 34 irqreturn_t ei_interrupt(int irq, void *dev_id); 35 - void ei_tx_timeout(struct net_device *dev); 35 + void ei_tx_timeout(struct net_device *dev, unsigned int txqueue); 36 36 netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev); 37 37 void ei_set_multicast_list(struct net_device *dev); 38 38 struct net_device_stats *ei_get_stats(struct net_device *dev); ··· 50 50 int eip_open(struct net_device *dev); 51 51 int eip_close(struct net_device *dev); 52 52 irqreturn_t eip_interrupt(int irq, void *dev_id); 53 - void eip_tx_timeout(struct net_device *dev); 53 + void eip_tx_timeout(struct net_device *dev, unsigned int txqueue); 54 54 netdev_tx_t eip_start_xmit(struct sk_buff *skb, struct net_device *dev); 55 55 void eip_set_multicast_list(struct net_device *dev); 56 56 struct net_device_stats *eip_get_stats(struct net_device *dev);
+2 -2
drivers/net/ethernet/8390/8390p.c
··· 41 41 } 42 42 EXPORT_SYMBOL(eip_set_multicast_list); 43 43 44 - void eip_tx_timeout(struct net_device *dev) 44 + void eip_tx_timeout(struct net_device *dev, unsigned int txqueue) 45 45 { 46 - __ei_tx_timeout(dev); 46 + __ei_tx_timeout(dev, txqueue); 47 47 } 48 48 EXPORT_SYMBOL(eip_tx_timeout); 49 49
+2 -2
drivers/net/ethernet/8390/axnet_cs.c
··· 83 83 struct net_device *dev); 84 84 static struct net_device_stats *get_stats(struct net_device *dev); 85 85 static void set_multicast_list(struct net_device *dev); 86 - static void axnet_tx_timeout(struct net_device *dev); 86 + static void axnet_tx_timeout(struct net_device *dev, unsigned int txqueue); 87 87 static irqreturn_t ei_irq_wrapper(int irq, void *dev_id); 88 88 static void ei_watchdog(struct timer_list *t); 89 89 static void axnet_reset_8390(struct net_device *dev); ··· 903 903 * completed (or failed) - i.e. never posted a Tx related interrupt. 904 904 */ 905 905 906 - static void axnet_tx_timeout(struct net_device *dev) 906 + static void axnet_tx_timeout(struct net_device *dev, unsigned int txqueue) 907 907 { 908 908 long e8390_base = dev->base_addr; 909 909 struct ei_device *ei_local = netdev_priv(dev);
+1 -1
drivers/net/ethernet/8390/lib8390.c
··· 251 251 * completed (or failed) - i.e. never posted a Tx related interrupt. 252 252 */ 253 253 254 - static void __ei_tx_timeout(struct net_device *dev) 254 + static void __ei_tx_timeout(struct net_device *dev, unsigned int txqueue) 255 255 { 256 256 unsigned long e8390_base = dev->base_addr; 257 257 struct ei_device *ei_local = netdev_priv(dev);
+2 -2
drivers/net/ethernet/adaptec/starfire.c
··· 576 576 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 577 577 static int netdev_open(struct net_device *dev); 578 578 static void check_duplex(struct net_device *dev); 579 - static void tx_timeout(struct net_device *dev); 579 + static void tx_timeout(struct net_device *dev, unsigned int txqueue); 580 580 static void init_ring(struct net_device *dev); 581 581 static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); 582 582 static irqreturn_t intr_handler(int irq, void *dev_instance); ··· 1105 1105 } 1106 1106 1107 1107 1108 - static void tx_timeout(struct net_device *dev) 1108 + static void tx_timeout(struct net_device *dev, unsigned int txqueue) 1109 1109 { 1110 1110 struct netdev_private *np = netdev_priv(dev); 1111 1111 void __iomem *ioaddr = np->base;
+1 -1
drivers/net/ethernet/agere/et131x.c
··· 3811 3811 * specified by the 'tx_timeo" element in the net_device structure (see 3812 3812 * et131x_alloc_device() to see how this value is set). 3813 3813 */ 3814 - static void et131x_tx_timeout(struct net_device *netdev) 3814 + static void et131x_tx_timeout(struct net_device *netdev, unsigned int txqueue) 3815 3815 { 3816 3816 struct et131x_adapter *adapter = netdev_priv(netdev); 3817 3817 struct tx_ring *tx_ring = &adapter->tx_ring;
+1 -1
drivers/net/ethernet/allwinner/sun4i-emac.c
··· 407 407 } 408 408 409 409 /* Our watchdog timed out. Called by the networking layer */ 410 - static void emac_timeout(struct net_device *dev) 410 + static void emac_timeout(struct net_device *dev, unsigned int txqueue) 411 411 { 412 412 struct emac_board_info *db = netdev_priv(dev); 413 413 unsigned long flags;
+2 -2
drivers/net/ethernet/alteon/acenic.c
··· 437 437 .set_link_ksettings = ace_set_link_ksettings, 438 438 }; 439 439 440 - static void ace_watchdog(struct net_device *dev); 440 + static void ace_watchdog(struct net_device *dev, unsigned int txqueue); 441 441 442 442 static const struct net_device_ops ace_netdev_ops = { 443 443 .ndo_open = ace_open, ··· 1542 1542 } 1543 1543 1544 1544 1545 - static void ace_watchdog(struct net_device *data) 1545 + static void ace_watchdog(struct net_device *data, unsigned int txqueue) 1546 1546 { 1547 1547 struct net_device *dev = data; 1548 1548 struct ace_private *ap = netdev_priv(dev);
+1 -1
drivers/net/ethernet/amazon/ena/ena_netdev.c
··· 108 108 static int ena_create_io_tx_queues_in_range(struct ena_adapter *adapter, 109 109 int first_index, int count); 110 110 111 - static void ena_tx_timeout(struct net_device *dev) 111 + static void ena_tx_timeout(struct net_device *dev, unsigned int txqueue) 112 112 { 113 113 struct ena_adapter *adapter = netdev_priv(dev); 114 114
+1 -1
drivers/net/ethernet/amd/7990.c
··· 527 527 } 528 528 EXPORT_SYMBOL_GPL(lance_close); 529 529 530 - void lance_tx_timeout(struct net_device *dev) 530 + void lance_tx_timeout(struct net_device *dev, unsigned int txqueue) 531 531 { 532 532 printk("lance_tx_timeout\n"); 533 533 lance_reset(dev);
+1 -1
drivers/net/ethernet/amd/7990.h
··· 243 243 int lance_close(struct net_device *dev); 244 244 int lance_start_xmit(struct sk_buff *skb, struct net_device *dev); 245 245 void lance_set_multicast(struct net_device *dev); 246 - void lance_tx_timeout(struct net_device *dev); 246 + void lance_tx_timeout(struct net_device *dev, unsigned int txqueue); 247 247 #ifdef CONFIG_NET_POLL_CONTROLLER 248 248 void lance_poll(struct net_device *dev); 249 249 #endif
+1 -1
drivers/net/ethernet/amd/a2065.c
··· 522 522 return status; 523 523 } 524 524 525 - static void lance_tx_timeout(struct net_device *dev) 525 + static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue) 526 526 { 527 527 struct lance_private *lp = netdev_priv(dev); 528 528 volatile struct lance_regs *ll = lp->ll;
+1 -1
drivers/net/ethernet/amd/am79c961a.c
··· 422 422 spin_unlock_irqrestore(&priv->chip_lock, flags); 423 423 } 424 424 425 - static void am79c961_timeout(struct net_device *dev) 425 + static void am79c961_timeout(struct net_device *dev, unsigned int txqueue) 426 426 { 427 427 printk(KERN_WARNING "%s: transmit timed out, network cable problem?\n", 428 428 dev->name);
+1 -1
drivers/net/ethernet/amd/amd8111e.c
··· 1569 1569 * failed or the interface is locked up. This function will reinitialize 1570 1570 * the hardware. 1571 1571 */ 1572 - static void amd8111e_tx_timeout(struct net_device *dev) 1572 + static void amd8111e_tx_timeout(struct net_device *dev, unsigned int txqueue) 1573 1573 { 1574 1574 struct amd8111e_priv *lp = netdev_priv(dev); 1575 1575 int err;
+1 -1
drivers/net/ethernet/amd/ariadne.c
··· 530 530 netif_start_queue(dev); 531 531 } 532 532 533 - static void ariadne_tx_timeout(struct net_device *dev) 533 + static void ariadne_tx_timeout(struct net_device *dev, unsigned int txqueue) 534 534 { 535 535 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; 536 536
+2 -2
drivers/net/ethernet/amd/atarilance.c
··· 346 346 static int lance_close( struct net_device *dev ); 347 347 static void set_multicast_list( struct net_device *dev ); 348 348 static int lance_set_mac_address( struct net_device *dev, void *addr ); 349 - static void lance_tx_timeout (struct net_device *dev); 349 + static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue); 350 350 351 351 /************************* End of Prototypes **************************/ 352 352 ··· 727 727 /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ 728 728 729 729 730 - static void lance_tx_timeout (struct net_device *dev) 730 + static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue) 731 731 { 732 732 struct lance_private *lp = netdev_priv(dev); 733 733 struct lance_ioreg *IO = lp->iobase;
+1 -1
drivers/net/ethernet/amd/au1000_eth.c
··· 1014 1014 * The Tx ring has been full longer than the watchdog timeout 1015 1015 * value. The transmitter must be hung? 1016 1016 */ 1017 - static void au1000_tx_timeout(struct net_device *dev) 1017 + static void au1000_tx_timeout(struct net_device *dev, unsigned int txqueue) 1018 1018 { 1019 1019 netdev_err(dev, "au1000_tx_timeout: dev=%p\n", dev); 1020 1020 au1000_reset_mac(dev);
+1 -1
drivers/net/ethernet/amd/declance.c
··· 884 884 return status; 885 885 } 886 886 887 - static void lance_tx_timeout(struct net_device *dev) 887 + static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue) 888 888 { 889 889 struct lance_private *lp = netdev_priv(dev); 890 890 volatile struct lance_regs *ll = lp->ll;
+2 -2
drivers/net/ethernet/amd/lance.c
··· 306 306 static int lance_close(struct net_device *dev); 307 307 static struct net_device_stats *lance_get_stats(struct net_device *dev); 308 308 static void set_multicast_list(struct net_device *dev); 309 - static void lance_tx_timeout (struct net_device *dev); 309 + static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue); 310 310 311 311 312 312 ··· 913 913 } 914 914 915 915 916 - static void lance_tx_timeout (struct net_device *dev) 916 + static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue) 917 917 { 918 918 struct lance_private *lp = (struct lance_private *) dev->ml_priv; 919 919 int ioaddr = dev->base_addr;
+2 -2
drivers/net/ethernet/amd/ni65.c
··· 254 254 static void ni65_init_lance(struct priv *p,unsigned char*,int,int); 255 255 static netdev_tx_t ni65_send_packet(struct sk_buff *skb, 256 256 struct net_device *dev); 257 - static void ni65_timeout(struct net_device *dev); 257 + static void ni65_timeout(struct net_device *dev, unsigned int txqueue); 258 258 static int ni65_close(struct net_device *dev); 259 259 static int ni65_alloc_buffer(struct net_device *dev); 260 260 static void ni65_free_buffer(struct priv *p); ··· 1133 1133 * kick xmitter .. 1134 1134 */ 1135 1135 1136 - static void ni65_timeout(struct net_device *dev) 1136 + static void ni65_timeout(struct net_device *dev, unsigned int txqueue) 1137 1137 { 1138 1138 int i; 1139 1139 struct priv *p = dev->ml_priv;
+2 -2
drivers/net/ethernet/amd/nmclan_cs.c
··· 407 407 static int mace_close(struct net_device *dev); 408 408 static netdev_tx_t mace_start_xmit(struct sk_buff *skb, 409 409 struct net_device *dev); 410 - static void mace_tx_timeout(struct net_device *dev); 410 + static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue); 411 411 static irqreturn_t mace_interrupt(int irq, void *dev_id); 412 412 static struct net_device_stats *mace_get_stats(struct net_device *dev); 413 413 static int mace_rx(struct net_device *dev, unsigned char RxCnt); ··· 837 837 failed, put skb back into a list." 838 838 ---------------------------------------------------------------------------- */ 839 839 840 - static void mace_tx_timeout(struct net_device *dev) 840 + static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue) 841 841 { 842 842 mace_private *lp = netdev_priv(dev); 843 843 struct pcmcia_device *link = lp->p_dev;
+2 -2
drivers/net/ethernet/amd/pcnet32.c
··· 314 314 static int pcnet32_init_ring(struct net_device *); 315 315 static netdev_tx_t pcnet32_start_xmit(struct sk_buff *, 316 316 struct net_device *); 317 - static void pcnet32_tx_timeout(struct net_device *dev); 317 + static void pcnet32_tx_timeout(struct net_device *dev, unsigned int txqueue); 318 318 static irqreturn_t pcnet32_interrupt(int, void *); 319 319 static int pcnet32_close(struct net_device *); 320 320 static struct net_device_stats *pcnet32_get_stats(struct net_device *); ··· 2455 2455 lp->a->write_csr(ioaddr, CSR0, csr0_bits); 2456 2456 } 2457 2457 2458 - static void pcnet32_tx_timeout(struct net_device *dev) 2458 + static void pcnet32_tx_timeout(struct net_device *dev, unsigned int txqueue) 2459 2459 { 2460 2460 struct pcnet32_private *lp = netdev_priv(dev); 2461 2461 unsigned long ioaddr = dev->base_addr, flags;
+1 -1
drivers/net/ethernet/amd/sunlance.c
··· 1097 1097 sbus_writeb(0, piobuf); 1098 1098 } 1099 1099 1100 - static void lance_tx_timeout(struct net_device *dev) 1100 + static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue) 1101 1101 { 1102 1102 struct lance_private *lp = netdev_priv(dev); 1103 1103
+1 -1
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
··· 2152 2152 return 0; 2153 2153 } 2154 2154 2155 - static void xgbe_tx_timeout(struct net_device *netdev) 2155 + static void xgbe_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2156 2156 { 2157 2157 struct xgbe_prv_data *pdata = netdev_priv(netdev); 2158 2158
+1 -1
drivers/net/ethernet/apm/xgene-v2/main.c
··· 575 575 } 576 576 } 577 577 578 - static void xge_timeout(struct net_device *ndev) 578 + static void xge_timeout(struct net_device *ndev, unsigned int txqueue) 579 579 { 580 580 struct xge_pdata *pdata = netdev_priv(ndev); 581 581
+1 -1
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
··· 859 859 return processed; 860 860 } 861 861 862 - static void xgene_enet_timeout(struct net_device *ndev) 862 + static void xgene_enet_timeout(struct net_device *ndev, unsigned int txqueue) 863 863 { 864 864 struct xgene_enet_pdata *pdata = netdev_priv(ndev); 865 865 struct netdev_queue *txq;
+2 -2
drivers/net/ethernet/apple/macmace.c
··· 91 91 static void mace_reset(struct net_device *dev); 92 92 static irqreturn_t mace_interrupt(int irq, void *dev_id); 93 93 static irqreturn_t mace_dma_intr(int irq, void *dev_id); 94 - static void mace_tx_timeout(struct net_device *dev); 94 + static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue); 95 95 static void __mace_set_address(struct net_device *dev, void *addr); 96 96 97 97 /* ··· 600 600 return IRQ_HANDLED; 601 601 } 602 602 603 - static void mace_tx_timeout(struct net_device *dev) 603 + static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue) 604 604 { 605 605 struct mace_data *mp = netdev_priv(dev); 606 606 volatile struct mace *mb = mp->mace;
+1 -1
drivers/net/ethernet/atheros/ag71xx.c
··· 1409 1409 napi_schedule(&ag->napi); 1410 1410 } 1411 1411 1412 - static void ag71xx_tx_timeout(struct net_device *ndev) 1412 + static void ag71xx_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1413 1413 { 1414 1414 struct ag71xx *ag = netdev_priv(ndev); 1415 1415
+1 -1
drivers/net/ethernet/atheros/alx/main.c
··· 1553 1553 return alx_start_xmit_ring(skb, alx_tx_queue_mapping(alx, skb)); 1554 1554 } 1555 1555 1556 - static void alx_tx_timeout(struct net_device *dev) 1556 + static void alx_tx_timeout(struct net_device *dev, unsigned int txqueue) 1557 1557 { 1558 1558 struct alx_priv *alx = netdev_priv(dev); 1559 1559
+1 -1
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
··· 350 350 * atl1c_tx_timeout - Respond to a Tx Hang 351 351 * @netdev: network interface device structure 352 352 */ 353 - static void atl1c_tx_timeout(struct net_device *netdev) 353 + static void atl1c_tx_timeout(struct net_device *netdev, unsigned int txqueue) 354 354 { 355 355 struct atl1c_adapter *adapter = netdev_priv(netdev); 356 356
+1 -1
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
··· 251 251 * atl1e_tx_timeout - Respond to a Tx Hang 252 252 * @netdev: network interface device structure 253 253 */ 254 - static void atl1e_tx_timeout(struct net_device *netdev) 254 + static void atl1e_tx_timeout(struct net_device *netdev, unsigned int txqueue) 255 255 { 256 256 struct atl1e_adapter *adapter = netdev_priv(netdev); 257 257
+1 -1
drivers/net/ethernet/atheros/atlx/atl2.c
··· 1001 1001 * atl2_tx_timeout - Respond to a Tx Hang 1002 1002 * @netdev: network interface device structure 1003 1003 */ 1004 - static void atl2_tx_timeout(struct net_device *netdev) 1004 + static void atl2_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1005 1005 { 1006 1006 struct atl2_adapter *adapter = netdev_priv(netdev); 1007 1007
+1 -1
drivers/net/ethernet/atheros/atlx/atlx.c
··· 183 183 * atlx_tx_timeout - Respond to a Tx Hang 184 184 * @netdev: network interface device structure 185 185 */ 186 - static void atlx_tx_timeout(struct net_device *netdev) 186 + static void atlx_tx_timeout(struct net_device *netdev, unsigned int txqueue) 187 187 { 188 188 struct atlx_adapter *adapter = netdev_priv(netdev); 189 189 /* Do the reset outside of interrupt context */
+1 -1
drivers/net/ethernet/broadcom/b44.c
··· 948 948 return IRQ_RETVAL(handled); 949 949 } 950 950 951 - static void b44_tx_timeout(struct net_device *dev) 951 + static void b44_tx_timeout(struct net_device *dev, unsigned int txqueue) 952 952 { 953 953 struct b44 *bp = netdev_priv(dev); 954 954
+1 -1
drivers/net/ethernet/broadcom/bcmsysport.c
··· 1354 1354 return ret; 1355 1355 } 1356 1356 1357 - static void bcm_sysport_tx_timeout(struct net_device *dev) 1357 + static void bcm_sysport_tx_timeout(struct net_device *dev, unsigned int txqueue) 1358 1358 { 1359 1359 netdev_warn(dev, "transmit timeout!\n"); 1360 1360
+1 -1
drivers/net/ethernet/broadcom/bnx2.c
··· 6575 6575 } 6576 6576 6577 6577 static void 6578 - bnx2_tx_timeout(struct net_device *dev) 6578 + bnx2_tx_timeout(struct net_device *dev, unsigned int txqueue) 6579 6579 { 6580 6580 struct bnx2 *bp = netdev_priv(dev); 6581 6581
+1 -1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
··· 4970 4970 return 0; 4971 4971 } 4972 4972 4973 - void bnx2x_tx_timeout(struct net_device *dev) 4973 + void bnx2x_tx_timeout(struct net_device *dev, unsigned int txqueue) 4974 4974 { 4975 4975 struct bnx2x *bp = netdev_priv(dev); 4976 4976
+1 -1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
··· 617 617 * 618 618 * @dev: net device 619 619 */ 620 - void bnx2x_tx_timeout(struct net_device *dev); 620 + void bnx2x_tx_timeout(struct net_device *dev, unsigned int txqueue); 621 621 622 622 /** bnx2x_get_c2s_mapping - read inner-to-outer vlan configuration 623 623 * c2s_map should have BNX2X_MAX_PRIORITY entries.
+1 -1
drivers/net/ethernet/broadcom/bnxt/bnxt.c
··· 9976 9976 } 9977 9977 } 9978 9978 9979 - static void bnxt_tx_timeout(struct net_device *dev) 9979 + static void bnxt_tx_timeout(struct net_device *dev, unsigned int txqueue) 9980 9980 { 9981 9981 struct bnxt *bp = netdev_priv(dev); 9982 9982
+1 -1
drivers/net/ethernet/broadcom/genet/bcmgenet.c
··· 3055 3055 ring->cb_ptr, ring->end_ptr); 3056 3056 } 3057 3057 3058 - static void bcmgenet_timeout(struct net_device *dev) 3058 + static void bcmgenet_timeout(struct net_device *dev, unsigned int txqueue) 3059 3059 { 3060 3060 struct bcmgenet_priv *priv = netdev_priv(dev); 3061 3061 u32 int0_enable = 0;
+2 -2
drivers/net/ethernet/broadcom/sb1250-mac.c
··· 294 294 enum sbmac_fc fc); 295 295 296 296 static int sbmac_open(struct net_device *dev); 297 - static void sbmac_tx_timeout (struct net_device *dev); 297 + static void sbmac_tx_timeout (struct net_device *dev, unsigned int txqueue); 298 298 static void sbmac_set_rx_mode(struct net_device *dev); 299 299 static int sbmac_mii_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 300 300 static int sbmac_close(struct net_device *dev); ··· 2419 2419 } 2420 2420 2421 2421 2422 - static void sbmac_tx_timeout (struct net_device *dev) 2422 + static void sbmac_tx_timeout (struct net_device *dev, unsigned int txqueue) 2423 2423 { 2424 2424 struct sbmac_softc *sc = netdev_priv(dev); 2425 2425 unsigned long flags;
+1 -1
drivers/net/ethernet/broadcom/tg3.c
··· 7645 7645 } 7646 7646 #endif 7647 7647 7648 - static void tg3_tx_timeout(struct net_device *dev) 7648 + static void tg3_tx_timeout(struct net_device *dev, unsigned int txqueue) 7649 7649 { 7650 7650 struct tg3 *tp = netdev_priv(dev); 7651 7651
+1 -1
drivers/net/ethernet/calxeda/xgmac.c
··· 1251 1251 * netdev structure and arrange for the device to be reset to a sane state 1252 1252 * in order to transmit a new packet. 1253 1253 */ 1254 - static void xgmac_tx_timeout(struct net_device *dev) 1254 + static void xgmac_tx_timeout(struct net_device *dev, unsigned int txqueue) 1255 1255 { 1256 1256 struct xgmac_priv *priv = netdev_priv(dev); 1257 1257 schedule_work(&priv->tx_timeout_work);
+1 -1
drivers/net/ethernet/cavium/liquidio/lio_main.c
··· 2562 2562 /** \brief Network device Tx timeout 2563 2563 * @param netdev pointer to network device 2564 2564 */ 2565 - static void liquidio_tx_timeout(struct net_device *netdev) 2565 + static void liquidio_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2566 2566 { 2567 2567 struct lio *lio; 2568 2568
+1 -1
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
··· 1628 1628 /** \brief Network device Tx timeout 1629 1629 * @param netdev pointer to network device 1630 1630 */ 1631 - static void liquidio_tx_timeout(struct net_device *netdev) 1631 + static void liquidio_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1632 1632 { 1633 1633 struct lio *lio; 1634 1634
+2 -2
drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c
··· 31 31 static int lio_vf_rep_stop(struct net_device *ndev); 32 32 static netdev_tx_t lio_vf_rep_pkt_xmit(struct sk_buff *skb, 33 33 struct net_device *ndev); 34 - static void lio_vf_rep_tx_timeout(struct net_device *netdev); 34 + static void lio_vf_rep_tx_timeout(struct net_device *netdev, unsigned int txqueue); 35 35 static int lio_vf_rep_phys_port_name(struct net_device *dev, 36 36 char *buf, size_t len); 37 37 static void lio_vf_rep_get_stats64(struct net_device *dev, ··· 172 172 } 173 173 174 174 static void 175 - lio_vf_rep_tx_timeout(struct net_device *ndev) 175 + lio_vf_rep_tx_timeout(struct net_device *ndev, unsigned int txqueue) 176 176 { 177 177 netif_trans_update(ndev); 178 178
+1 -1
drivers/net/ethernet/cavium/thunder/nicvf_main.c
··· 1741 1741 1742 1742 } 1743 1743 1744 - static void nicvf_tx_timeout(struct net_device *dev) 1744 + static void nicvf_tx_timeout(struct net_device *dev, unsigned int txqueue) 1745 1745 { 1746 1746 struct nicvf *nic = netdev_priv(dev); 1747 1747
+1 -1
drivers/net/ethernet/cirrus/cs89x0.c
··· 1128 1128 return &dev->stats; 1129 1129 } 1130 1130 1131 - static void net_timeout(struct net_device *dev) 1131 + static void net_timeout(struct net_device *dev, unsigned int txqueue) 1132 1132 { 1133 1133 /* If we get here, some higher level has decided we are broken. 1134 1134 There should really be a "kick me" function call instead. */
+1 -1
drivers/net/ethernet/cisco/enic/enic_main.c
··· 1095 1095 } 1096 1096 1097 1097 /* netif_tx_lock held, BHs disabled */ 1098 - static void enic_tx_timeout(struct net_device *netdev) 1098 + static void enic_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1099 1099 { 1100 1100 struct enic *enic = netdev_priv(netdev); 1101 1101 schedule_work(&enic->tx_hang_reset);
+1 -1
drivers/net/ethernet/cortina/gemini.c
··· 1296 1296 return NETDEV_TX_OK; 1297 1297 } 1298 1298 1299 - static void gmac_tx_timeout(struct net_device *netdev) 1299 + static void gmac_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1300 1300 { 1301 1301 netdev_err(netdev, "Tx timeout\n"); 1302 1302 gmac_dump_dma_state(netdev);
+1 -1
drivers/net/ethernet/davicom/dm9000.c
··· 964 964 } 965 965 966 966 /* Our watchdog timed out. Called by the networking layer */ 967 - static void dm9000_timeout(struct net_device *dev) 967 + static void dm9000_timeout(struct net_device *dev, unsigned int txqueue) 968 968 { 969 969 struct board_info *db = netdev_priv(dev); 970 970 u8 reg_save;
+1 -1
drivers/net/ethernet/dec/tulip/de2104x.c
··· 1436 1436 return 0; 1437 1437 } 1438 1438 1439 - static void de_tx_timeout (struct net_device *dev) 1439 + static void de_tx_timeout (struct net_device *dev, unsigned int txqueue) 1440 1440 { 1441 1441 struct de_private *de = netdev_priv(dev); 1442 1442 const int irq = de->pdev->irq;
+2 -2
drivers/net/ethernet/dec/tulip/tulip_core.c
··· 255 255 const char tulip_media_cap[32] = 256 256 {0,0,0,16, 3,19,16,24, 27,4,7,5, 0,20,23,20, 28,31,0,0, }; 257 257 258 - static void tulip_tx_timeout(struct net_device *dev); 258 + static void tulip_tx_timeout(struct net_device *dev, unsigned int txqueue); 259 259 static void tulip_init_ring(struct net_device *dev); 260 260 static void tulip_free_ring(struct net_device *dev); 261 261 static netdev_tx_t tulip_start_xmit(struct sk_buff *skb, ··· 534 534 } 535 535 536 536 537 - static void tulip_tx_timeout(struct net_device *dev) 537 + static void tulip_tx_timeout(struct net_device *dev, unsigned int txqueue) 538 538 { 539 539 struct tulip_private *tp = netdev_priv(dev); 540 540 void __iomem *ioaddr = tp->base_addr;
+2 -2
drivers/net/ethernet/dec/tulip/winbond-840.c
··· 331 331 static void init_rxtx_rings(struct net_device *dev); 332 332 static void free_rxtx_rings(struct netdev_private *np); 333 333 static void init_registers(struct net_device *dev); 334 - static void tx_timeout(struct net_device *dev); 334 + static void tx_timeout(struct net_device *dev, unsigned int txqueue); 335 335 static int alloc_ringdesc(struct net_device *dev); 336 336 static void free_ringdesc(struct netdev_private *np); 337 337 static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); ··· 921 921 iowrite32(0, ioaddr + RxStartDemand); 922 922 } 923 923 924 - static void tx_timeout(struct net_device *dev) 924 + static void tx_timeout(struct net_device *dev, unsigned int txqueue) 925 925 { 926 926 struct netdev_private *np = netdev_priv(dev); 927 927 void __iomem *ioaddr = np->base_addr;
+2 -2
drivers/net/ethernet/dlink/dl2k.c
··· 66 66 67 67 static int rio_open (struct net_device *dev); 68 68 static void rio_timer (struct timer_list *t); 69 - static void rio_tx_timeout (struct net_device *dev); 69 + static void rio_tx_timeout (struct net_device *dev, unsigned int txqueue); 70 70 static netdev_tx_t start_xmit (struct sk_buff *skb, struct net_device *dev); 71 71 static irqreturn_t rio_interrupt (int irq, void *dev_instance); 72 72 static void rio_free_tx (struct net_device *dev, int irq); ··· 696 696 } 697 697 698 698 static void 699 - rio_tx_timeout (struct net_device *dev) 699 + rio_tx_timeout (struct net_device *dev, unsigned int txqueue) 700 700 { 701 701 struct netdev_private *np = netdev_priv(dev); 702 702 void __iomem *ioaddr = np->ioaddr;
+2 -2
drivers/net/ethernet/dlink/sundance.c
··· 432 432 static int netdev_open(struct net_device *dev); 433 433 static void check_duplex(struct net_device *dev); 434 434 static void netdev_timer(struct timer_list *t); 435 - static void tx_timeout(struct net_device *dev); 435 + static void tx_timeout(struct net_device *dev, unsigned int txqueue); 436 436 static void init_ring(struct net_device *dev); 437 437 static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); 438 438 static int reset_tx (struct net_device *dev); ··· 969 969 add_timer(&np->timer); 970 970 } 971 971 972 - static void tx_timeout(struct net_device *dev) 972 + static void tx_timeout(struct net_device *dev, unsigned int txqueue) 973 973 { 974 974 struct netdev_private *np = netdev_priv(dev); 975 975 void __iomem *ioaddr = np->base;
+1 -1
drivers/net/ethernet/emulex/benet/be_main.c
··· 1417 1417 return NETDEV_TX_OK; 1418 1418 } 1419 1419 1420 - static void be_tx_timeout(struct net_device *netdev) 1420 + static void be_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1421 1421 { 1422 1422 struct be_adapter *adapter = netdev_priv(netdev); 1423 1423 struct device *dev = &adapter->pdev->dev;
+1 -1
drivers/net/ethernet/ethoc.c
··· 869 869 return -ENOSYS; 870 870 } 871 871 872 - static void ethoc_tx_timeout(struct net_device *dev) 872 + static void ethoc_tx_timeout(struct net_device *dev, unsigned int txqueue) 873 873 { 874 874 struct ethoc *priv = netdev_priv(dev); 875 875 u32 pending = ethoc_read(priv, INT_SOURCE);
+1 -1
drivers/net/ethernet/faraday/ftgmac100.c
··· 1545 1545 return phy_mii_ioctl(netdev->phydev, ifr, cmd); 1546 1546 } 1547 1547 1548 - static void ftgmac100_tx_timeout(struct net_device *netdev) 1548 + static void ftgmac100_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1549 1549 { 1550 1550 struct ftgmac100 *priv = netdev_priv(netdev); 1551 1551
+2 -2
drivers/net/ethernet/fealnx.c
··· 428 428 static void getlinkstatus(struct net_device *dev); 429 429 static void netdev_timer(struct timer_list *t); 430 430 static void reset_timer(struct timer_list *t); 431 - static void fealnx_tx_timeout(struct net_device *dev); 431 + static void fealnx_tx_timeout(struct net_device *dev, unsigned int txqueue); 432 432 static void init_ring(struct net_device *dev); 433 433 static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev); 434 434 static irqreturn_t intr_handler(int irq, void *dev_instance); ··· 1191 1191 } 1192 1192 1193 1193 1194 - static void fealnx_tx_timeout(struct net_device *dev) 1194 + static void fealnx_tx_timeout(struct net_device *dev, unsigned int txqueue) 1195 1195 { 1196 1196 struct netdev_private *np = netdev_priv(dev); 1197 1197 void __iomem *ioaddr = np->mem;
+1 -1
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
··· 288 288 return err; 289 289 } 290 290 291 - static void dpaa_tx_timeout(struct net_device *net_dev) 291 + static void dpaa_tx_timeout(struct net_device *net_dev, unsigned int txqueue) 292 292 { 293 293 struct dpaa_percpu_priv *percpu_priv; 294 294 const struct dpaa_priv *priv;
+1 -1
drivers/net/ethernet/freescale/fec_main.c
··· 1141 1141 1142 1142 1143 1143 static void 1144 - fec_timeout(struct net_device *ndev) 1144 + fec_timeout(struct net_device *ndev, unsigned int txqueue) 1145 1145 { 1146 1146 struct fec_enet_private *fep = netdev_priv(ndev); 1147 1147
+1 -1
drivers/net/ethernet/freescale/fec_mpc52xx.c
··· 84 84 module_param(debug, int, 0); 85 85 MODULE_PARM_DESC(debug, "debugging messages level"); 86 86 87 - static void mpc52xx_fec_tx_timeout(struct net_device *dev) 87 + static void mpc52xx_fec_tx_timeout(struct net_device *dev, unsigned int txqueue) 88 88 { 89 89 struct mpc52xx_fec_priv *priv = netdev_priv(dev); 90 90 unsigned long flags;
+1 -1
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
··· 641 641 netif_wake_queue(dev); 642 642 } 643 643 644 - static void fs_timeout(struct net_device *dev) 644 + static void fs_timeout(struct net_device *dev, unsigned int txqueue) 645 645 { 646 646 struct fs_enet_private *fep = netdev_priv(dev); 647 647
+1 -1
drivers/net/ethernet/freescale/gianfar.c
··· 2093 2093 reset_gfar(priv->ndev); 2094 2094 } 2095 2095 2096 - static void gfar_timeout(struct net_device *dev) 2096 + static void gfar_timeout(struct net_device *dev, unsigned int txqueue) 2097 2097 { 2098 2098 struct gfar_private *priv = netdev_priv(dev); 2099 2099
+1 -1
drivers/net/ethernet/freescale/ucc_geth.c
··· 3545 3545 * ucc_geth_timeout gets called when a packet has not been 3546 3546 * transmitted after a set amount of time. 3547 3547 */ 3548 - static void ucc_geth_timeout(struct net_device *dev) 3548 + static void ucc_geth_timeout(struct net_device *dev, unsigned int txqueue) 3549 3549 { 3550 3550 struct ucc_geth_private *ugeth = netdev_priv(dev); 3551 3551
+2 -2
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
··· 93 93 static void fjn_rx(struct net_device *dev); 94 94 static void fjn_reset(struct net_device *dev); 95 95 static void set_rx_mode(struct net_device *dev); 96 - static void fjn_tx_timeout(struct net_device *dev); 96 + static void fjn_tx_timeout(struct net_device *dev, unsigned int txqueue); 97 97 static const struct ethtool_ops netdev_ethtool_ops; 98 98 99 99 /* ··· 774 774 775 775 /*====================================================================*/ 776 776 777 - static void fjn_tx_timeout(struct net_device *dev) 777 + static void fjn_tx_timeout(struct net_device *dev, unsigned int txqueue) 778 778 { 779 779 struct local_info *lp = netdev_priv(dev); 780 780 unsigned int ioaddr = dev->base_addr;
+1 -1
drivers/net/ethernet/google/gve/gve_main.c
··· 845 845 gve_set_napi_enabled(priv); 846 846 } 847 847 848 - static void gve_tx_timeout(struct net_device *dev) 848 + static void gve_tx_timeout(struct net_device *dev, unsigned int txqueue) 849 849 { 850 850 struct gve_priv *priv = netdev_priv(dev); 851 851
+1 -1
drivers/net/ethernet/hisilicon/hip04_eth.c
··· 779 779 return 0; 780 780 } 781 781 782 - static void hip04_timeout(struct net_device *ndev) 782 + static void hip04_timeout(struct net_device *ndev, unsigned int txqueue) 783 783 { 784 784 struct hip04_priv *priv = netdev_priv(ndev); 785 785
+1 -1
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c
··· 893 893 hix5hd2_net_open(priv->netdev); 894 894 } 895 895 896 - static void hix5hd2_net_timeout(struct net_device *dev) 896 + static void hix5hd2_net_timeout(struct net_device *dev, unsigned int txqueue) 897 897 { 898 898 struct hix5hd2_priv *priv = netdev_priv(dev); 899 899
+1 -1
drivers/net/ethernet/hisilicon/hns/hns_enet.c
··· 1485 1485 1486 1486 static void hns_tx_timeout_reset(struct hns_nic_priv *priv); 1487 1487 #define HNS_TX_TIMEO_LIMIT (40 * HZ) 1488 - static void hns_nic_net_timeout(struct net_device *ndev) 1488 + static void hns_nic_net_timeout(struct net_device *ndev, unsigned int txqueue) 1489 1489 { 1490 1490 struct hns_nic_priv *priv = netdev_priv(ndev); 1491 1491
+1 -1
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 1869 1869 return true; 1870 1870 } 1871 1871 1872 - static void hns3_nic_net_timeout(struct net_device *ndev) 1872 + static void hns3_nic_net_timeout(struct net_device *ndev, unsigned int txqueue) 1873 1873 { 1874 1874 struct hns3_nic_priv *priv = netdev_priv(ndev); 1875 1875 struct hnae3_handle *h = priv->ae_handle;
+1 -1
drivers/net/ethernet/huawei/hinic/hinic_main.c
··· 766 766 queue_work(nic_dev->workq, &rx_mode_work->work); 767 767 } 768 768 769 - static void hinic_tx_timeout(struct net_device *netdev) 769 + static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue) 770 770 { 771 771 struct hinic_dev *nic_dev = netdev_priv(netdev); 772 772
+2 -2
drivers/net/ethernet/i825xx/82596.c
··· 363 363 static irqreturn_t i596_interrupt(int irq, void *dev_id); 364 364 static int i596_close(struct net_device *dev); 365 365 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); 366 - static void i596_tx_timeout (struct net_device *dev); 366 + static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue); 367 367 static void print_eth(unsigned char *buf, char *str); 368 368 static void set_multicast_list(struct net_device *dev); 369 369 ··· 1019 1019 return res; 1020 1020 } 1021 1021 1022 - static void i596_tx_timeout (struct net_device *dev) 1022 + static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue) 1023 1023 { 1024 1024 struct i596_private *lp = dev->ml_priv; 1025 1025 int ioaddr = dev->base_addr;
+2 -2
drivers/net/ethernet/i825xx/ether1.c
··· 66 66 static irqreturn_t ether1_interrupt(int irq, void *dev_id); 67 67 static int ether1_close(struct net_device *dev); 68 68 static void ether1_setmulticastlist(struct net_device *dev); 69 - static void ether1_timeout(struct net_device *dev); 69 + static void ether1_timeout(struct net_device *dev, unsigned int txqueue); 70 70 71 71 /* ------------------------------------------------------------------------- */ 72 72 ··· 650 650 } 651 651 652 652 static void 653 - ether1_timeout(struct net_device *dev) 653 + ether1_timeout(struct net_device *dev, unsigned int txqueue) 654 654 { 655 655 printk(KERN_WARNING "%s: transmit timeout, network cable problem?\n", 656 656 dev->name);
+2 -2
drivers/net/ethernet/i825xx/lib82596.c
··· 351 351 static irqreturn_t i596_interrupt(int irq, void *dev_id); 352 352 static int i596_close(struct net_device *dev); 353 353 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd); 354 - static void i596_tx_timeout (struct net_device *dev); 354 + static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue); 355 355 static void print_eth(unsigned char *buf, char *str); 356 356 static void set_multicast_list(struct net_device *dev); 357 357 static inline void ca(struct net_device *dev); ··· 936 936 return -EAGAIN; 937 937 } 938 938 939 - static void i596_tx_timeout (struct net_device *dev) 939 + static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue) 940 940 { 941 941 struct i596_private *lp = netdev_priv(dev); 942 942
+2 -2
drivers/net/ethernet/i825xx/sun3_82586.c
··· 125 125 struct net_device *); 126 126 static struct net_device_stats *sun3_82586_get_stats(struct net_device *dev); 127 127 static void set_multicast_list(struct net_device *dev); 128 - static void sun3_82586_timeout(struct net_device *dev); 128 + static void sun3_82586_timeout(struct net_device *dev, unsigned int txqueue); 129 129 #if 0 130 130 static void sun3_82586_dump(struct net_device *,void *); 131 131 #endif ··· 965 965 WAIT_4_SCB_CMD_RUC(); /* wait for accept cmd. (no timeout!!) */ 966 966 } 967 967 968 - static void sun3_82586_timeout(struct net_device *dev) 968 + static void sun3_82586_timeout(struct net_device *dev, unsigned int txqueue) 969 969 { 970 970 struct priv *p = netdev_priv(dev); 971 971 #ifndef NO_NOPCOMMANDS
+1 -1
drivers/net/ethernet/ibm/ehea/ehea_main.c
··· 2786 2786 return; 2787 2787 } 2788 2788 2789 - static void ehea_tx_watchdog(struct net_device *dev) 2789 + static void ehea_tx_watchdog(struct net_device *dev, unsigned int txqueue) 2790 2790 { 2791 2791 struct ehea_port *port = netdev_priv(dev); 2792 2792
+1 -1
drivers/net/ethernet/ibm/emac/core.c
··· 776 776 mutex_unlock(&dev->link_lock); 777 777 } 778 778 779 - static void emac_tx_timeout(struct net_device *ndev) 779 + static void emac_tx_timeout(struct net_device *ndev, unsigned int txqueue) 780 780 { 781 781 struct emac_instance *dev = netdev_priv(ndev); 782 782
+1 -1
drivers/net/ethernet/ibm/ibmvnic.c
··· 2282 2282 return -ret; 2283 2283 } 2284 2284 2285 - static void ibmvnic_tx_timeout(struct net_device *dev) 2285 + static void ibmvnic_tx_timeout(struct net_device *dev, unsigned int txqueue) 2286 2286 { 2287 2287 struct ibmvnic_adapter *adapter = netdev_priv(dev); 2288 2288
+1 -1
drivers/net/ethernet/intel/e100.c
··· 2316 2316 e100_rx_clean_list(nic); 2317 2317 } 2318 2318 2319 - static void e100_tx_timeout(struct net_device *netdev) 2319 + static void e100_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2320 2320 { 2321 2321 struct nic *nic = netdev_priv(netdev); 2322 2322
+2 -2
drivers/net/ethernet/intel/e1000/e1000_main.c
··· 134 134 int cmd); 135 135 static void e1000_enter_82542_rst(struct e1000_adapter *adapter); 136 136 static void e1000_leave_82542_rst(struct e1000_adapter *adapter); 137 - static void e1000_tx_timeout(struct net_device *dev); 137 + static void e1000_tx_timeout(struct net_device *dev, unsigned int txqueue); 138 138 static void e1000_reset_task(struct work_struct *work); 139 139 static void e1000_smartspeed(struct e1000_adapter *adapter); 140 140 static int e1000_82547_fifo_workaround(struct e1000_adapter *adapter, ··· 3488 3488 * e1000_tx_timeout - Respond to a Tx Hang 3489 3489 * @netdev: network interface device structure 3490 3490 **/ 3491 - static void e1000_tx_timeout(struct net_device *netdev) 3491 + static void e1000_tx_timeout(struct net_device *netdev, unsigned int txqueue) 3492 3492 { 3493 3493 struct e1000_adapter *adapter = netdev_priv(netdev); 3494 3494
+1 -1
drivers/net/ethernet/intel/e1000e/netdev.c
··· 5929 5929 * e1000_tx_timeout - Respond to a Tx Hang 5930 5930 * @netdev: network interface device structure 5931 5931 **/ 5932 - static void e1000_tx_timeout(struct net_device *netdev) 5932 + static void e1000_tx_timeout(struct net_device *netdev, unsigned int txqueue) 5933 5933 { 5934 5934 struct e1000_adapter *adapter = netdev_priv(netdev); 5935 5935
+1 -1
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
··· 697 697 * fm10k_tx_timeout - Respond to a Tx Hang 698 698 * @netdev: network interface device structure 699 699 **/ 700 - static void fm10k_tx_timeout(struct net_device *netdev) 700 + static void fm10k_tx_timeout(struct net_device *netdev, unsigned int txqueue) 701 701 { 702 702 struct fm10k_intfc *interface = netdev_priv(netdev); 703 703 bool real_tx_hang = false;
+1 -1
drivers/net/ethernet/intel/i40e/i40e_main.c
··· 301 301 * device is munged, not just the one netdev port, so go for the full 302 302 * reset. 303 303 **/ 304 - static void i40e_tx_timeout(struct net_device *netdev) 304 + static void i40e_tx_timeout(struct net_device *netdev, unsigned int txqueue) 305 305 { 306 306 struct i40e_netdev_priv *np = netdev_priv(netdev); 307 307 struct i40e_vsi *vsi = np->vsi;
+1 -1
drivers/net/ethernet/intel/iavf/iavf_main.c
··· 159 159 * iavf_tx_timeout - Respond to a Tx Hang 160 160 * @netdev: network interface device structure 161 161 **/ 162 - static void iavf_tx_timeout(struct net_device *netdev) 162 + static void iavf_tx_timeout(struct net_device *netdev, unsigned int txqueue) 163 163 { 164 164 struct iavf_adapter *adapter = netdev_priv(netdev); 165 165
+1 -1
drivers/net/ethernet/intel/ice/ice_main.c
··· 5060 5060 * ice_tx_timeout - Respond to a Tx Hang 5061 5061 * @netdev: network interface device structure 5062 5062 */ 5063 - static void ice_tx_timeout(struct net_device *netdev) 5063 + static void ice_tx_timeout(struct net_device *netdev, unsigned int txqueue) 5064 5064 { 5065 5065 struct ice_netdev_priv *np = netdev_priv(netdev); 5066 5066 struct ice_ring *tx_ring = NULL;
+2 -2
drivers/net/ethernet/intel/igb/igb_main.c
··· 146 146 static bool igb_clean_tx_irq(struct igb_q_vector *, int); 147 147 static int igb_clean_rx_irq(struct igb_q_vector *, int); 148 148 static int igb_ioctl(struct net_device *, struct ifreq *, int cmd); 149 - static void igb_tx_timeout(struct net_device *); 149 + static void igb_tx_timeout(struct net_device *, unsigned int txqueue); 150 150 static void igb_reset_task(struct work_struct *); 151 151 static void igb_vlan_mode(struct net_device *netdev, 152 152 netdev_features_t features); ··· 6184 6184 * igb_tx_timeout - Respond to a Tx Hang 6185 6185 * @netdev: network interface device structure 6186 6186 **/ 6187 - static void igb_tx_timeout(struct net_device *netdev) 6187 + static void igb_tx_timeout(struct net_device *netdev, unsigned int txqueue) 6188 6188 { 6189 6189 struct igb_adapter *adapter = netdev_priv(netdev); 6190 6190 struct e1000_hw *hw = &adapter->hw;
+1 -1
drivers/net/ethernet/intel/igbvf/netdev.c
··· 2375 2375 * igbvf_tx_timeout - Respond to a Tx Hang 2376 2376 * @netdev: network interface device structure 2377 2377 **/ 2378 - static void igbvf_tx_timeout(struct net_device *netdev) 2378 + static void igbvf_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2379 2379 { 2380 2380 struct igbvf_adapter *adapter = netdev_priv(netdev); 2381 2381
+2 -2
drivers/net/ethernet/intel/ixgb/ixgb_main.c
··· 70 70 static bool ixgb_clean_rx_irq(struct ixgb_adapter *, int *, int); 71 71 static void ixgb_alloc_rx_buffers(struct ixgb_adapter *, int); 72 72 73 - static void ixgb_tx_timeout(struct net_device *dev); 73 + static void ixgb_tx_timeout(struct net_device *dev, unsigned int txqueue); 74 74 static void ixgb_tx_timeout_task(struct work_struct *work); 75 75 76 76 static void ixgb_vlan_strip_enable(struct ixgb_adapter *adapter); ··· 1538 1538 **/ 1539 1539 1540 1540 static void 1541 - ixgb_tx_timeout(struct net_device *netdev) 1541 + ixgb_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1542 1542 { 1543 1543 struct ixgb_adapter *adapter = netdev_priv(netdev); 1544 1544
+3 -1
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c
··· 166 166 ixgbe_dbg_netdev_ops_buf[len] = '\0'; 167 167 168 168 if (strncmp(ixgbe_dbg_netdev_ops_buf, "tx_timeout", 10) == 0) { 169 - adapter->netdev->netdev_ops->ndo_tx_timeout(adapter->netdev); 169 + /* TX Queue number below is wrong, but ixgbe does not use it */ 170 + adapter->netdev->netdev_ops->ndo_tx_timeout(adapter->netdev, 171 + UINT_MAX); 170 172 e_dev_info("tx_timeout called\n"); 171 173 } else { 172 174 e_dev_info("Unknown command: %s\n", ixgbe_dbg_netdev_ops_buf);
+1 -1
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
··· 6158 6158 * ixgbe_tx_timeout - Respond to a Tx Hang 6159 6159 * @netdev: network interface device structure 6160 6160 **/ 6161 - static void ixgbe_tx_timeout(struct net_device *netdev) 6161 + static void ixgbe_tx_timeout(struct net_device *netdev, unsigned int txqueue) 6162 6162 { 6163 6163 struct ixgbe_adapter *adapter = netdev_priv(netdev); 6164 6164
+1 -1
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
··· 250 250 * ixgbevf_tx_timeout - Respond to a Tx Hang 251 251 * @netdev: network interface device structure 252 252 **/ 253 - static void ixgbevf_tx_timeout(struct net_device *netdev) 253 + static void ixgbevf_tx_timeout(struct net_device *netdev, unsigned int txqueue) 254 254 { 255 255 struct ixgbevf_adapter *adapter = netdev_priv(netdev); 256 256
+1 -1
drivers/net/ethernet/jme.c
··· 2337 2337 } 2338 2338 2339 2339 static void 2340 - jme_tx_timeout(struct net_device *netdev) 2340 + jme_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2341 2341 { 2342 2342 struct jme_adapter *jme = netdev_priv(netdev); 2343 2343
+1 -1
drivers/net/ethernet/korina.c
··· 917 917 enable_irq(lp->rx_irq); 918 918 } 919 919 920 - static void korina_tx_timeout(struct net_device *dev) 920 + static void korina_tx_timeout(struct net_device *dev, unsigned int txqueue) 921 921 { 922 922 struct korina_private *lp = netdev_priv(dev); 923 923
+1 -1
drivers/net/ethernet/lantiq_etop.c
··· 594 594 } 595 595 596 596 static void 597 - ltq_etop_tx_timeout(struct net_device *dev) 597 + ltq_etop_tx_timeout(struct net_device *dev, unsigned int txqueue) 598 598 { 599 599 int err; 600 600
+1 -1
drivers/net/ethernet/marvell/mv643xx_eth.c
··· 2590 2590 } 2591 2591 } 2592 2592 2593 - static void mv643xx_eth_tx_timeout(struct net_device *dev) 2593 + static void mv643xx_eth_tx_timeout(struct net_device *dev, unsigned int txqueue) 2594 2594 { 2595 2595 struct mv643xx_eth_private *mp = netdev_priv(dev); 2596 2596
+1 -1
drivers/net/ethernet/marvell/pxa168_eth.c
··· 742 742 return released; 743 743 } 744 744 745 - static void pxa168_eth_tx_timeout(struct net_device *dev) 745 + static void pxa168_eth_tx_timeout(struct net_device *dev, unsigned int txqueue) 746 746 { 747 747 struct pxa168_eth_private *pep = netdev_priv(dev); 748 748
+1 -1
drivers/net/ethernet/marvell/skge.c
··· 2884 2884 skge->tx_ring.to_clean = e; 2885 2885 } 2886 2886 2887 - static void skge_tx_timeout(struct net_device *dev) 2887 + static void skge_tx_timeout(struct net_device *dev, unsigned int txqueue) 2888 2888 { 2889 2889 struct skge_port *skge = netdev_priv(dev); 2890 2890
+1 -1
drivers/net/ethernet/marvell/sky2.c
··· 2358 2358 /* Transmit timeout is only called if we are running, carrier is up 2359 2359 * and tx queue is full (stopped). 2360 2360 */ 2361 - static void sky2_tx_timeout(struct net_device *dev) 2361 + static void sky2_tx_timeout(struct net_device *dev, unsigned int txqueue) 2362 2362 { 2363 2363 struct sky2_port *sky2 = netdev_priv(dev); 2364 2364 struct sky2_hw *hw = sky2->hw;
+1 -1
drivers/net/ethernet/mediatek/mtk_eth_soc.c
··· 2081 2081 kfree(eth->scratch_head); 2082 2082 } 2083 2083 2084 - static void mtk_tx_timeout(struct net_device *dev) 2084 + static void mtk_tx_timeout(struct net_device *dev, unsigned int txqueue) 2085 2085 { 2086 2086 struct mtk_mac *mac = netdev_priv(dev); 2087 2087 struct mtk_eth *eth = mac->hw;
+1 -1
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
··· 1363 1363 } 1364 1364 } 1365 1365 1366 - static void mlx4_en_tx_timeout(struct net_device *dev) 1366 + static void mlx4_en_tx_timeout(struct net_device *dev, unsigned int txqueue) 1367 1367 { 1368 1368 struct mlx4_en_priv *priv = netdev_priv(dev); 1369 1369 struct mlx4_en_dev *mdev = priv->mdev;
+1 -1
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
··· 4332 4332 rtnl_unlock(); 4333 4333 } 4334 4334 4335 - static void mlx5e_tx_timeout(struct net_device *dev) 4335 + static void mlx5e_tx_timeout(struct net_device *dev, unsigned int txqueue) 4336 4336 { 4337 4337 struct mlx5e_priv *priv = netdev_priv(dev); 4338 4338
+1 -1
drivers/net/ethernet/micrel/ks8842.c
··· 1103 1103 __ks8842_start_new_rx_dma(netdev); 1104 1104 } 1105 1105 1106 - static void ks8842_tx_timeout(struct net_device *netdev) 1106 + static void ks8842_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1107 1107 { 1108 1108 struct ks8842_adapter *adapter = netdev_priv(netdev); 1109 1109
+1 -1
drivers/net/ethernet/micrel/ksz884x.c
··· 4896 4896 * triggered to free up resources so that the transmit routine can continue 4897 4897 * sending out packets. The hardware is reset to correct the problem. 4898 4898 */ 4899 - static void netdev_tx_timeout(struct net_device *dev) 4899 + static void netdev_tx_timeout(struct net_device *dev, unsigned int txqueue) 4900 4900 { 4901 4901 static unsigned long last_reset; 4902 4902
+1 -1
drivers/net/ethernet/microchip/enc28j60.c
··· 1325 1325 return IRQ_HANDLED; 1326 1326 } 1327 1327 1328 - static void enc28j60_tx_timeout(struct net_device *ndev) 1328 + static void enc28j60_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1329 1329 { 1330 1330 struct enc28j60_net *priv = netdev_priv(ndev); 1331 1331
+1 -1
drivers/net/ethernet/microchip/encx24j600.c
··· 892 892 } 893 893 894 894 /* Deal with a transmit timeout */ 895 - static void encx24j600_tx_timeout(struct net_device *dev) 895 + static void encx24j600_tx_timeout(struct net_device *dev, unsigned int txqueue) 896 896 { 897 897 struct encx24j600_priv *priv = netdev_priv(dev); 898 898
+2 -2
drivers/net/ethernet/natsemi/natsemi.c
··· 612 612 static void check_link(struct net_device *dev); 613 613 static void netdev_timer(struct timer_list *t); 614 614 static void dump_ring(struct net_device *dev); 615 - static void ns_tx_timeout(struct net_device *dev); 615 + static void ns_tx_timeout(struct net_device *dev, unsigned int txqueue); 616 616 static int alloc_ring(struct net_device *dev); 617 617 static void refill_rx(struct net_device *dev); 618 618 static void init_ring(struct net_device *dev); ··· 1881 1881 } 1882 1882 } 1883 1883 1884 - static void ns_tx_timeout(struct net_device *dev) 1884 + static void ns_tx_timeout(struct net_device *dev, unsigned int txqueue) 1885 1885 { 1886 1886 struct netdev_private *np = netdev_priv(dev); 1887 1887 void __iomem * ioaddr = ns_ioaddr(dev);
+2 -2
drivers/net/ethernet/natsemi/ns83820.c
··· 1549 1549 return 0; 1550 1550 } 1551 1551 1552 - static void ns83820_tx_timeout(struct net_device *ndev) 1552 + static void ns83820_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1553 1553 { 1554 1554 struct ns83820 *dev = PRIV(ndev); 1555 1555 u32 tx_done_idx; ··· 1603 1603 ndev->name, 1604 1604 dev->tx_done_idx, dev->tx_free_idx, 1605 1605 atomic_read(&dev->nr_tx_skbs)); 1606 - ns83820_tx_timeout(ndev); 1606 + ns83820_tx_timeout(ndev, UINT_MAX); 1607 1607 } 1608 1608 1609 1609 mod_timer(&dev->tx_watchdog, jiffies + 2*HZ);
+1 -1
drivers/net/ethernet/natsemi/sonic.c
··· 161 161 return 0; 162 162 } 163 163 164 - static void sonic_tx_timeout(struct net_device *dev) 164 + static void sonic_tx_timeout(struct net_device *dev, unsigned int txqueue) 165 165 { 166 166 struct sonic_local *lp = netdev_priv(dev); 167 167 int i;
+1 -1
drivers/net/ethernet/natsemi/sonic.h
··· 336 336 static struct net_device_stats *sonic_get_stats(struct net_device *dev); 337 337 static void sonic_multicast_list(struct net_device *dev); 338 338 static int sonic_init(struct net_device *dev); 339 - static void sonic_tx_timeout(struct net_device *dev); 339 + static void sonic_tx_timeout(struct net_device *dev, unsigned int txqueue); 340 340 static void sonic_msg_init(struct net_device *dev); 341 341 342 342 /* Internal inlines for reading/writing DMA buffers. Note that bus
+1 -1
drivers/net/ethernet/neterion/s2io.c
··· 7238 7238 * void 7239 7239 */ 7240 7240 7241 - static void s2io_tx_watchdog(struct net_device *dev) 7241 + static void s2io_tx_watchdog(struct net_device *dev, unsigned int txqueue) 7242 7242 { 7243 7243 struct s2io_nic *sp = netdev_priv(dev); 7244 7244 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
+1 -1
drivers/net/ethernet/neterion/s2io.h
··· 1065 1065 static void tx_intr_handler(struct fifo_info *fifo_data); 1066 1066 static void s2io_handle_errors(void * dev_id); 1067 1067 1068 - static void s2io_tx_watchdog(struct net_device *dev); 1068 + static void s2io_tx_watchdog(struct net_device *dev, unsigned int txqueue); 1069 1069 static void s2io_set_multicast(struct net_device *dev); 1070 1070 static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp); 1071 1071 static void s2io_link(struct s2io_nic * sp, int link);
+1 -1
drivers/net/ethernet/neterion/vxge/vxge-main.c
··· 3273 3273 * This function is triggered if the Tx Queue is stopped 3274 3274 * for a pre-defined amount of time when the Interface is still up. 3275 3275 */ 3276 - static void vxge_tx_watchdog(struct net_device *dev) 3276 + static void vxge_tx_watchdog(struct net_device *dev, unsigned int txqueue) 3277 3277 { 3278 3278 struct vxgedev *vdev; 3279 3279
+1 -1
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
··· 1321 1321 netdev_tx_reset_queue(nd_q); 1322 1322 } 1323 1323 1324 - static void nfp_net_tx_timeout(struct net_device *netdev) 1324 + static void nfp_net_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1325 1325 { 1326 1326 struct nfp_net *nn = netdev_priv(netdev); 1327 1327 int i;
+1 -1
drivers/net/ethernet/nvidia/forcedeth.c
··· 2739 2739 * nv_tx_timeout: dev->tx_timeout function 2740 2740 * Called with netif_tx_lock held. 2741 2741 */ 2742 - static void nv_tx_timeout(struct net_device *dev) 2742 + static void nv_tx_timeout(struct net_device *dev, unsigned int txqueue) 2743 2743 { 2744 2744 struct fe_priv *np = netdev_priv(dev); 2745 2745 u8 __iomem *base = get_hwbase(dev);
+1 -1
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
··· 2271 2271 * pch_gbe_tx_timeout - Respond to a Tx Hang 2272 2272 * @netdev: Network interface device structure 2273 2273 */ 2274 - static void pch_gbe_tx_timeout(struct net_device *netdev) 2274 + static void pch_gbe_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2275 2275 { 2276 2276 struct pch_gbe_adapter *adapter = netdev_priv(netdev); 2277 2277
+2 -2
drivers/net/ethernet/packetengines/hamachi.c
··· 548 548 static int hamachi_open(struct net_device *dev); 549 549 static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 550 550 static void hamachi_timer(struct timer_list *t); 551 - static void hamachi_tx_timeout(struct net_device *dev); 551 + static void hamachi_tx_timeout(struct net_device *dev, unsigned int txqueue); 552 552 static void hamachi_init_ring(struct net_device *dev); 553 553 static netdev_tx_t hamachi_start_xmit(struct sk_buff *skb, 554 554 struct net_device *dev); ··· 1042 1042 add_timer(&hmp->timer); 1043 1043 } 1044 1044 1045 - static void hamachi_tx_timeout(struct net_device *dev) 1045 + static void hamachi_tx_timeout(struct net_device *dev, unsigned int txqueue) 1046 1046 { 1047 1047 int i; 1048 1048 struct hamachi_private *hmp = netdev_priv(dev);
+2 -2
drivers/net/ethernet/packetengines/yellowfin.c
··· 344 344 static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 345 345 static int yellowfin_open(struct net_device *dev); 346 346 static void yellowfin_timer(struct timer_list *t); 347 - static void yellowfin_tx_timeout(struct net_device *dev); 347 + static void yellowfin_tx_timeout(struct net_device *dev, unsigned int txqueue); 348 348 static int yellowfin_init_ring(struct net_device *dev); 349 349 static netdev_tx_t yellowfin_start_xmit(struct sk_buff *skb, 350 350 struct net_device *dev); ··· 677 677 add_timer(&yp->timer); 678 678 } 679 679 680 - static void yellowfin_tx_timeout(struct net_device *dev) 680 + static void yellowfin_tx_timeout(struct net_device *dev, unsigned int txqueue) 681 681 { 682 682 struct yellowfin_private *yp = netdev_priv(dev); 683 683 void __iomem *ioaddr = yp->base;
+1 -1
drivers/net/ethernet/pensando/ionic/ionic_lif.c
··· 1285 1285 rtnl_unlock(); 1286 1286 } 1287 1287 1288 - static void ionic_tx_timeout(struct net_device *netdev) 1288 + static void ionic_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1289 1289 { 1290 1290 struct ionic_lif *lif = netdev_priv(netdev); 1291 1291
+2 -2
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
··· 49 49 static int netxen_nic_close(struct net_device *netdev); 50 50 static netdev_tx_t netxen_nic_xmit_frame(struct sk_buff *, 51 51 struct net_device *); 52 - static void netxen_tx_timeout(struct net_device *netdev); 52 + static void netxen_tx_timeout(struct net_device *netdev, unsigned int txqueue); 53 53 static void netxen_tx_timeout_task(struct work_struct *work); 54 54 static void netxen_fw_poll_work(struct work_struct *work); 55 55 static void netxen_schedule_work(struct netxen_adapter *adapter, ··· 2222 2222 netxen_advert_link_change(adapter, linkup); 2223 2223 } 2224 2224 2225 - static void netxen_tx_timeout(struct net_device *netdev) 2225 + static void netxen_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2226 2226 { 2227 2227 struct netxen_adapter *adapter = netdev_priv(netdev); 2228 2228
+1 -1
drivers/net/ethernet/qlogic/qla3xxx.c
··· 3602 3602 return 0; 3603 3603 } 3604 3604 3605 - static void ql3xxx_tx_timeout(struct net_device *ndev) 3605 + static void ql3xxx_tx_timeout(struct net_device *ndev, unsigned int txqueue) 3606 3606 { 3607 3607 struct ql3_adapter *qdev = netdev_priv(ndev); 3608 3608
+2 -2
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
··· 56 56 static void qlcnic_remove(struct pci_dev *pdev); 57 57 static int qlcnic_open(struct net_device *netdev); 58 58 static int qlcnic_close(struct net_device *netdev); 59 - static void qlcnic_tx_timeout(struct net_device *netdev); 59 + static void qlcnic_tx_timeout(struct net_device *netdev, unsigned int txqueue); 60 60 static void qlcnic_attach_work(struct work_struct *work); 61 61 static void qlcnic_fwinit_work(struct work_struct *work); 62 62 ··· 3068 3068 3069 3069 } 3070 3070 3071 - static void qlcnic_tx_timeout(struct net_device *netdev) 3071 + static void qlcnic_tx_timeout(struct net_device *netdev, unsigned int txqueue) 3072 3072 { 3073 3073 struct qlcnic_adapter *adapter = netdev_priv(netdev); 3074 3074
+1 -1
drivers/net/ethernet/qualcomm/emac/emac.c
··· 282 282 } 283 283 284 284 /* Respond to a TX hang */ 285 - static void emac_tx_timeout(struct net_device *netdev) 285 + static void emac_tx_timeout(struct net_device *netdev, unsigned int txqueue) 286 286 { 287 287 struct emac_adapter *adpt = netdev_priv(netdev); 288 288
+1 -1
drivers/net/ethernet/qualcomm/qca_spi.c
··· 785 785 } 786 786 787 787 static void 788 - qcaspi_netdev_tx_timeout(struct net_device *dev) 788 + qcaspi_netdev_tx_timeout(struct net_device *dev, unsigned int txqueue) 789 789 { 790 790 struct qcaspi *qca = netdev_priv(dev); 791 791
+1 -1
drivers/net/ethernet/qualcomm/qca_uart.c
··· 248 248 return NETDEV_TX_OK; 249 249 } 250 250 251 - static void qcauart_netdev_tx_timeout(struct net_device *dev) 251 + static void qcauart_netdev_tx_timeout(struct net_device *dev, unsigned int txqueue) 252 252 { 253 253 struct qcauart *qca = netdev_priv(dev); 254 254
+1 -1
drivers/net/ethernet/rdc/r6040.c
··· 410 410 iowrite16(TM2TX, ioaddr + MTPR); 411 411 } 412 412 413 - static void r6040_tx_timeout(struct net_device *dev) 413 + static void r6040_tx_timeout(struct net_device *dev, unsigned int txqueue) 414 414 { 415 415 struct r6040_private *priv = netdev_priv(dev); 416 416 void __iomem *ioaddr = priv->base;
+1 -1
drivers/net/ethernet/realtek/8139cp.c
··· 1235 1235 return 0; 1236 1236 } 1237 1237 1238 - static void cp_tx_timeout(struct net_device *dev) 1238 + static void cp_tx_timeout(struct net_device *dev, unsigned int txqueue) 1239 1239 { 1240 1240 struct cp_private *cp = netdev_priv(dev); 1241 1241 unsigned long flags;
+2 -2
drivers/net/ethernet/realtek/8139too.c
··· 642 642 static void mdio_write (struct net_device *dev, int phy_id, int location, 643 643 int val); 644 644 static void rtl8139_start_thread(struct rtl8139_private *tp); 645 - static void rtl8139_tx_timeout (struct net_device *dev); 645 + static void rtl8139_tx_timeout (struct net_device *dev, unsigned int txqueue); 646 646 static void rtl8139_init_ring (struct net_device *dev); 647 647 static netdev_tx_t rtl8139_start_xmit (struct sk_buff *skb, 648 648 struct net_device *dev); ··· 1700 1700 spin_unlock_bh(&tp->rx_lock); 1701 1701 } 1702 1702 1703 - static void rtl8139_tx_timeout (struct net_device *dev) 1703 + static void rtl8139_tx_timeout(struct net_device *dev, unsigned int txqueue) 1704 1704 { 1705 1705 struct rtl8139_private *tp = netdev_priv(dev); 1706 1706
+2 -2
drivers/net/ethernet/realtek/atp.c
··· 204 204 static void read_block(long ioaddr, int length, unsigned char *buffer, int data_mode); 205 205 static int net_close(struct net_device *dev); 206 206 static void set_rx_mode(struct net_device *dev); 207 - static void tx_timeout(struct net_device *dev); 207 + static void tx_timeout(struct net_device *dev, unsigned int txqueue); 208 208 209 209 210 210 /* A list of all installed ATP devices, for removing the driver module. */ ··· 533 533 outb(Ctrl_HNibWrite | Ctrl_SelData | Ctrl_IRQEN, ioaddr + PAR_CONTROL); 534 534 } 535 535 536 - static void tx_timeout(struct net_device *dev) 536 + static void tx_timeout(struct net_device *dev, unsigned int txqueue) 537 537 { 538 538 long ioaddr = dev->base_addr; 539 539
+1 -1
drivers/net/ethernet/realtek/r8169_main.c
··· 5435 5435 netif_wake_queue(dev); 5436 5436 } 5437 5437 5438 - static void rtl8169_tx_timeout(struct net_device *dev) 5438 + static void rtl8169_tx_timeout(struct net_device *dev, unsigned int txqueue) 5439 5439 { 5440 5440 struct rtl8169_private *tp = netdev_priv(dev); 5441 5441
+1 -1
drivers/net/ethernet/renesas/ravb_main.c
··· 1425 1425 } 1426 1426 1427 1427 /* Timeout function for Ethernet AVB */ 1428 - static void ravb_tx_timeout(struct net_device *ndev) 1428 + static void ravb_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1429 1429 { 1430 1430 struct ravb_private *priv = netdev_priv(ndev); 1431 1431
+1 -1
drivers/net/ethernet/renesas/sh_eth.c
··· 2478 2478 } 2479 2479 2480 2480 /* Timeout function */ 2481 - static void sh_eth_tx_timeout(struct net_device *ndev) 2481 + static void sh_eth_tx_timeout(struct net_device *ndev, unsigned int txqueue) 2482 2482 { 2483 2483 struct sh_eth_private *mdp = netdev_priv(ndev); 2484 2484 struct sh_eth_rxdesc *rxdesc;
+1 -1
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
··· 1572 1572 * netdev structure and arrange for the device to be reset to a sane state 1573 1573 * in order to transmit a new packet. 1574 1574 */ 1575 - static void sxgbe_tx_timeout(struct net_device *dev) 1575 + static void sxgbe_tx_timeout(struct net_device *dev, unsigned int txqueue) 1576 1576 { 1577 1577 struct sxgbe_priv_data *priv = netdev_priv(dev); 1578 1578
+2 -2
drivers/net/ethernet/seeq/ether3.c
··· 79 79 static irqreturn_t ether3_interrupt (int irq, void *dev_id); 80 80 static int ether3_close (struct net_device *dev); 81 81 static void ether3_setmulticastlist (struct net_device *dev); 82 - static void ether3_timeout(struct net_device *dev); 82 + static void ether3_timeout(struct net_device *dev, unsigned int txqueue); 83 83 84 84 #define BUS_16 2 85 85 #define BUS_8 1 ··· 450 450 ether3_outw(priv(dev)->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1); 451 451 } 452 452 453 - static void ether3_timeout(struct net_device *dev) 453 + static void ether3_timeout(struct net_device *dev, unsigned int txqueue) 454 454 { 455 455 unsigned long flags; 456 456
+1 -1
drivers/net/ethernet/seeq/sgiseeq.c
··· 645 645 return NETDEV_TX_OK; 646 646 } 647 647 648 - static void timeout(struct net_device *dev) 648 + static void timeout(struct net_device *dev, unsigned int txqueue) 649 649 { 650 650 printk(KERN_NOTICE "%s: transmit timed out, resetting\n", dev->name); 651 651 sgiseeq_reset(dev);
+1 -1
drivers/net/ethernet/sfc/efx.c
··· 2395 2395 } 2396 2396 2397 2397 /* Context: netif_tx_lock held, BHs disabled. */ 2398 - static void efx_watchdog(struct net_device *net_dev) 2398 + static void efx_watchdog(struct net_device *net_dev, unsigned int txqueue) 2399 2399 { 2400 2400 struct efx_nic *efx = netdev_priv(net_dev); 2401 2401
+1 -1
drivers/net/ethernet/sfc/falcon/efx.c
··· 2108 2108 } 2109 2109 2110 2110 /* Context: netif_tx_lock held, BHs disabled. */ 2111 - static void ef4_watchdog(struct net_device *net_dev) 2111 + static void ef4_watchdog(struct net_device *net_dev, unsigned int txqueue) 2112 2112 { 2113 2113 struct ef4_nic *efx = netdev_priv(net_dev); 2114 2114
+2 -2
drivers/net/ethernet/sgi/ioc3-eth.c
··· 114 114 static int ioc3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 115 115 static void ioc3_set_multicast_list(struct net_device *dev); 116 116 static netdev_tx_t ioc3_start_xmit(struct sk_buff *skb, struct net_device *dev); 117 - static void ioc3_timeout(struct net_device *dev); 117 + static void ioc3_timeout(struct net_device *dev, unsigned int txqueue); 118 118 static inline unsigned int ioc3_hash(const unsigned char *addr); 119 119 static void ioc3_start(struct ioc3_private *ip); 120 120 static inline void ioc3_stop(struct ioc3_private *ip); ··· 1479 1479 return NETDEV_TX_OK; 1480 1480 } 1481 1481 1482 - static void ioc3_timeout(struct net_device *dev) 1482 + static void ioc3_timeout(struct net_device *dev, unsigned int txqueue) 1483 1483 { 1484 1484 struct ioc3_private *ip = netdev_priv(dev); 1485 1485
+2 -2
drivers/net/ethernet/sgi/meth.c
··· 90 90 spinlock_t meth_lock; 91 91 }; 92 92 93 - static void meth_tx_timeout(struct net_device *dev); 93 + static void meth_tx_timeout(struct net_device *dev, unsigned int txqueue); 94 94 static irqreturn_t meth_interrupt(int irq, void *dev_id); 95 95 96 96 /* global, initialized in ip32-setup.c */ ··· 727 727 /* 728 728 * Deal with a transmit timeout. 729 729 */ 730 - static void meth_tx_timeout(struct net_device *dev) 730 + static void meth_tx_timeout(struct net_device *dev, unsigned int txqueue) 731 731 { 732 732 struct meth_private *priv = netdev_priv(dev); 733 733 unsigned long flags;
+1 -1
drivers/net/ethernet/silan/sc92031.c
··· 1078 1078 spin_unlock_bh(&priv->lock); 1079 1079 } 1080 1080 1081 - static void sc92031_tx_timeout(struct net_device *dev) 1081 + static void sc92031_tx_timeout(struct net_device *dev, unsigned int txqueue) 1082 1082 { 1083 1083 struct sc92031_priv *priv = netdev_priv(dev); 1084 1084
+1 -1
drivers/net/ethernet/sis/sis190.c
··· 1538 1538 goto out; 1539 1539 } 1540 1540 1541 - static void sis190_tx_timeout(struct net_device *dev) 1541 + static void sis190_tx_timeout(struct net_device *dev, unsigned int txqueue) 1542 1542 { 1543 1543 struct sis190_private *tp = netdev_priv(dev); 1544 1544 void __iomem *ioaddr = tp->mmio_addr;
+2 -2
drivers/net/ethernet/sis/sis900.c
··· 222 222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val); 223 223 static void sis900_timer(struct timer_list *t); 224 224 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy); 225 - static void sis900_tx_timeout(struct net_device *net_dev); 225 + static void sis900_tx_timeout(struct net_device *net_dev, unsigned int txqueue); 226 226 static void sis900_init_tx_ring(struct net_device *net_dev); 227 227 static void sis900_init_rx_ring(struct net_device *net_dev); 228 228 static netdev_tx_t sis900_start_xmit(struct sk_buff *skb, ··· 1537 1537 * disable interrupts and do some tasks 1538 1538 */ 1539 1539 1540 - static void sis900_tx_timeout(struct net_device *net_dev) 1540 + static void sis900_tx_timeout(struct net_device *net_dev, unsigned int txqueue) 1541 1541 { 1542 1542 struct sis900_private *sis_priv = netdev_priv(net_dev); 1543 1543 void __iomem *ioaddr = sis_priv->ioaddr;
+2 -2
drivers/net/ethernet/smsc/epic100.c
··· 291 291 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val); 292 292 static void epic_restart(struct net_device *dev); 293 293 static void epic_timer(struct timer_list *t); 294 - static void epic_tx_timeout(struct net_device *dev); 294 + static void epic_tx_timeout(struct net_device *dev, unsigned int txqueue); 295 295 static void epic_init_ring(struct net_device *dev); 296 296 static netdev_tx_t epic_start_xmit(struct sk_buff *skb, 297 297 struct net_device *dev); ··· 861 861 add_timer(&ep->timer); 862 862 } 863 863 864 - static void epic_tx_timeout(struct net_device *dev) 864 + static void epic_tx_timeout(struct net_device *dev, unsigned int txqueue) 865 865 { 866 866 struct epic_private *ep = netdev_priv(dev); 867 867 void __iomem *ioaddr = ep->ioaddr;
+1 -1
drivers/net/ethernet/smsc/smc911x.c
··· 1245 1245 #endif 1246 1246 1247 1247 /* Our watchdog timed out. Called by the networking layer */ 1248 - static void smc911x_timeout(struct net_device *dev) 1248 + static void smc911x_timeout(struct net_device *dev, unsigned int txqueue) 1249 1249 { 1250 1250 struct smc911x_local *lp = netdev_priv(dev); 1251 1251 int status, mask;
+2 -2
drivers/net/ethernet/smsc/smc9194.c
··· 216 216 /* 217 217 . Our watchdog timed out. Called by the networking layer 218 218 */ 219 - static void smc_timeout(struct net_device *dev); 219 + static void smc_timeout(struct net_device *dev, unsigned int txqueue); 220 220 221 221 /* 222 222 . This is called by the kernel in response to 'ifconfig ethX down'. It ··· 1094 1094 .-------------------------------------------------------- 1095 1095 */ 1096 1096 1097 - static void smc_timeout(struct net_device *dev) 1097 + static void smc_timeout(struct net_device *dev, unsigned int txqueue) 1098 1098 { 1099 1099 /* If we get here, some higher level has decided we are broken. 1100 1100 There should really be a "kick me" function call instead. */
+2 -2
drivers/net/ethernet/smsc/smc91c92_cs.c
··· 271 271 static int smc_open(struct net_device *dev); 272 272 static int smc_close(struct net_device *dev); 273 273 static int smc_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 274 - static void smc_tx_timeout(struct net_device *dev); 274 + static void smc_tx_timeout(struct net_device *dev, unsigned int txqueue); 275 275 static netdev_tx_t smc_start_xmit(struct sk_buff *skb, 276 276 struct net_device *dev); 277 277 static irqreturn_t smc_interrupt(int irq, void *dev_id); ··· 1178 1178 1179 1179 /*====================================================================*/ 1180 1180 1181 - static void smc_tx_timeout(struct net_device *dev) 1181 + static void smc_tx_timeout(struct net_device *dev, unsigned int txqueue) 1182 1182 { 1183 1183 struct smc_private *smc = netdev_priv(dev); 1184 1184 unsigned int ioaddr = dev->base_addr;
+1 -1
drivers/net/ethernet/smsc/smc91x.c
··· 1321 1321 #endif 1322 1322 1323 1323 /* Our watchdog timed out. Called by the networking layer */ 1324 - static void smc_timeout(struct net_device *dev) 1324 + static void smc_timeout(struct net_device *dev, unsigned int txqueue) 1325 1325 { 1326 1326 struct smc_local *lp = netdev_priv(dev); 1327 1327 void __iomem *ioaddr = lp->base;
+1 -1
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
··· 3792 3792 * netdev structure and arrange for the device to be reset to a sane state 3793 3793 * in order to transmit a new packet. 3794 3794 */ 3795 - static void stmmac_tx_timeout(struct net_device *dev) 3795 + static void stmmac_tx_timeout(struct net_device *dev, unsigned int txqueue) 3796 3796 { 3797 3797 struct stmmac_priv *priv = netdev_priv(dev); 3798 3798
+1 -1
drivers/net/ethernet/sun/cassini.c
··· 2666 2666 } 2667 2667 #endif 2668 2668 2669 - static void cas_tx_timeout(struct net_device *dev) 2669 + static void cas_tx_timeout(struct net_device *dev, unsigned int txqueue) 2670 2670 { 2671 2671 struct cas *cp = netdev_priv(dev); 2672 2672
+1 -1
drivers/net/ethernet/sun/niu.c
··· 6517 6517 spin_unlock_irqrestore(&np->lock, flags); 6518 6518 } 6519 6519 6520 - static void niu_tx_timeout(struct net_device *dev) 6520 + static void niu_tx_timeout(struct net_device *dev, unsigned int txqueue) 6521 6521 { 6522 6522 struct niu *np = netdev_priv(dev); 6523 6523
+1 -1
drivers/net/ethernet/sun/sunbmac.c
··· 941 941 return 0; 942 942 } 943 943 944 - static void bigmac_tx_timeout(struct net_device *dev) 944 + static void bigmac_tx_timeout(struct net_device *dev, unsigned int txqueue) 945 945 { 946 946 struct bigmac *bp = netdev_priv(dev); 947 947
+1 -1
drivers/net/ethernet/sun/sungem.c
··· 970 970 } 971 971 #endif 972 972 973 - static void gem_tx_timeout(struct net_device *dev) 973 + static void gem_tx_timeout(struct net_device *dev, unsigned int txqueue) 974 974 { 975 975 struct gem *gp = netdev_priv(dev); 976 976
+1 -1
drivers/net/ethernet/sun/sunhme.c
··· 2246 2246 #define SXD(x) 2247 2247 #endif 2248 2248 2249 - static void happy_meal_tx_timeout(struct net_device *dev) 2249 + static void happy_meal_tx_timeout(struct net_device *dev, unsigned int txqueue) 2250 2250 { 2251 2251 struct happy_meal *hp = netdev_priv(dev); 2252 2252
+1 -1
drivers/net/ethernet/sun/sunqe.c
··· 544 544 qep->tx_old = elem; 545 545 } 546 546 547 - static void qe_tx_timeout(struct net_device *dev) 547 + static void qe_tx_timeout(struct net_device *dev, unsigned int txqueue) 548 548 { 549 549 struct sunqe *qep = netdev_priv(dev); 550 550 int tx_full;
+1 -1
drivers/net/ethernet/sun/sunvnet_common.c
··· 1539 1539 } 1540 1540 EXPORT_SYMBOL_GPL(sunvnet_start_xmit_common); 1541 1541 1542 - void sunvnet_tx_timeout_common(struct net_device *dev) 1542 + void sunvnet_tx_timeout_common(struct net_device *dev, unsigned int txqueue) 1543 1543 { 1544 1544 /* XXX Implement me XXX */ 1545 1545 }
+1 -1
drivers/net/ethernet/sun/sunvnet_common.h
··· 135 135 int sunvnet_close_common(struct net_device *dev); 136 136 void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp); 137 137 int sunvnet_set_mac_addr_common(struct net_device *dev, void *p); 138 - void sunvnet_tx_timeout_common(struct net_device *dev); 138 + void sunvnet_tx_timeout_common(struct net_device *dev, unsigned int txqueue); 139 139 netdev_tx_t 140 140 sunvnet_start_xmit_common(struct sk_buff *skb, struct net_device *dev, 141 141 struct vnet_port *(*vnet_tx_port)
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
··· 689 689 return 0; 690 690 } 691 691 692 - static void xlgmac_tx_timeout(struct net_device *netdev) 692 + static void xlgmac_tx_timeout(struct net_device *netdev, unsigned int txqueue) 693 693 { 694 694 struct xlgmac_pdata *pdata = netdev_priv(netdev); 695 695
+1 -1
drivers/net/ethernet/ti/cpmac.c
··· 797 797 return IRQ_HANDLED; 798 798 } 799 799 800 - static void cpmac_tx_timeout(struct net_device *dev) 800 + static void cpmac_tx_timeout(struct net_device *dev, unsigned int txqueue) 801 801 { 802 802 struct cpmac_priv *priv = netdev_priv(dev); 803 803
+1 -1
drivers/net/ethernet/ti/cpsw_priv.c
··· 272 272 WARN(readl_relaxed(reg) & 1, "failed to soft-reset %s\n", module); 273 273 } 274 274 275 - void cpsw_ndo_tx_timeout(struct net_device *ndev) 275 + void cpsw_ndo_tx_timeout(struct net_device *ndev, unsigned int txqueue) 276 276 { 277 277 struct cpsw_priv *priv = netdev_priv(ndev); 278 278 struct cpsw_common *cpsw = priv->cpsw;
+1 -1
drivers/net/ethernet/ti/cpsw_priv.h
··· 449 449 void cpsw_rx_vlan_encap(struct sk_buff *skb); 450 450 void soft_reset(const char *module, void __iomem *reg); 451 451 void cpsw_set_slave_mac(struct cpsw_slave *slave, struct cpsw_priv *priv); 452 - void cpsw_ndo_tx_timeout(struct net_device *ndev); 452 + void cpsw_ndo_tx_timeout(struct net_device *ndev, unsigned int txqueue); 453 453 int cpsw_need_resplit(struct cpsw_common *cpsw); 454 454 int cpsw_ndo_ioctl(struct net_device *dev, struct ifreq *req, int cmd); 455 455 int cpsw_ndo_set_tx_maxrate(struct net_device *ndev, int queue, u32 rate);
+1 -1
drivers/net/ethernet/ti/davinci_emac.c
··· 983 983 * error and re-initialize the TX channel for hardware operation 984 984 * 985 985 */ 986 - static void emac_dev_tx_timeout(struct net_device *ndev) 986 + static void emac_dev_tx_timeout(struct net_device *ndev, unsigned int txqueue) 987 987 { 988 988 struct emac_priv *priv = netdev_priv(ndev); 989 989 struct device *emac_dev = &ndev->dev;
+1 -1
drivers/net/ethernet/ti/netcp_core.c
··· 1811 1811 return (ret == 0) ? 0 : err; 1812 1812 } 1813 1813 1814 - static void netcp_ndo_tx_timeout(struct net_device *ndev) 1814 + static void netcp_ndo_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1815 1815 { 1816 1816 struct netcp_intf *netcp = netdev_priv(ndev); 1817 1817 unsigned int descs = knav_pool_count(netcp->tx_pool);
+3 -3
drivers/net/ethernet/ti/tlan.c
··· 161 161 static int tlan_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 162 162 static int tlan_probe1(struct pci_dev *pdev, long ioaddr, 163 163 int irq, int rev, const struct pci_device_id *ent); 164 - static void tlan_tx_timeout(struct net_device *dev); 164 + static void tlan_tx_timeout(struct net_device *dev, unsigned int txqueue); 165 165 static void tlan_tx_timeout_work(struct work_struct *work); 166 166 static int tlan_init_one(struct pci_dev *pdev, 167 167 const struct pci_device_id *ent); ··· 997 997 * 998 998 **************************************************************/ 999 999 1000 - static void tlan_tx_timeout(struct net_device *dev) 1000 + static void tlan_tx_timeout(struct net_device *dev, unsigned int txqueue) 1001 1001 { 1002 1002 1003 1003 TLAN_DBG(TLAN_DEBUG_GNRL, "%s: Transmit timed out.\n", dev->name); ··· 1028 1028 struct tlan_priv *priv = 1029 1029 container_of(work, struct tlan_priv, tlan_tqueue); 1030 1030 1031 - tlan_tx_timeout(priv->dev); 1031 + tlan_tx_timeout(priv->dev, UINT_MAX); 1032 1032 } 1033 1033 1034 1034
+1 -1
drivers/net/ethernet/toshiba/ps3_gelic_net.c
··· 1405 1405 * 1406 1406 * called, if tx hangs. Schedules a task that resets the interface 1407 1407 */ 1408 - void gelic_net_tx_timeout(struct net_device *netdev) 1408 + void gelic_net_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1409 1409 { 1410 1410 struct gelic_card *card; 1411 1411
+1 -1
drivers/net/ethernet/toshiba/ps3_gelic_net.h
··· 359 359 int gelic_net_stop(struct net_device *netdev); 360 360 netdev_tx_t gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev); 361 361 void gelic_net_set_multi(struct net_device *netdev); 362 - void gelic_net_tx_timeout(struct net_device *netdev); 362 + void gelic_net_tx_timeout(struct net_device *netdev, unsigned int txqueue); 363 363 int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card); 364 364 365 365 /* shared ethtool ops */
+1 -1
drivers/net/ethernet/toshiba/spider_net.c
··· 2180 2180 * called, if tx hangs. Schedules a task that resets the interface 2181 2181 */ 2182 2182 static void 2183 - spider_net_tx_timeout(struct net_device *netdev) 2183 + spider_net_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2184 2184 { 2185 2185 struct spider_net_card *card; 2186 2186
+2 -2
drivers/net/ethernet/toshiba/tc35815.c
··· 483 483 static int tc35815_close(struct net_device *dev); 484 484 static struct net_device_stats *tc35815_get_stats(struct net_device *dev); 485 485 static void tc35815_set_multicast_list(struct net_device *dev); 486 - static void tc35815_tx_timeout(struct net_device *dev); 486 + static void tc35815_tx_timeout(struct net_device *dev, unsigned int txqueue); 487 487 static int tc35815_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 488 488 #ifdef CONFIG_NET_POLL_CONTROLLER 489 489 static void tc35815_poll_controller(struct net_device *dev); ··· 1189 1189 spin_unlock_irqrestore(&lp->lock, flags); 1190 1190 } 1191 1191 1192 - static void tc35815_tx_timeout(struct net_device *dev) 1192 + static void tc35815_tx_timeout(struct net_device *dev, unsigned int txqueue) 1193 1193 { 1194 1194 struct tc35815_regs __iomem *tr = 1195 1195 (struct tc35815_regs __iomem *)dev->base_addr;
+2 -2
drivers/net/ethernet/via/via-rhine.c
··· 506 506 static int rhine_open(struct net_device *dev); 507 507 static void rhine_reset_task(struct work_struct *work); 508 508 static void rhine_slow_event_task(struct work_struct *work); 509 - static void rhine_tx_timeout(struct net_device *dev); 509 + static void rhine_tx_timeout(struct net_device *dev, unsigned int txqueue); 510 510 static netdev_tx_t rhine_start_tx(struct sk_buff *skb, 511 511 struct net_device *dev); 512 512 static irqreturn_t rhine_interrupt(int irq, void *dev_instance); ··· 1761 1761 mutex_unlock(&rp->task_lock); 1762 1762 } 1763 1763 1764 - static void rhine_tx_timeout(struct net_device *dev) 1764 + static void rhine_tx_timeout(struct net_device *dev, unsigned int txqueue) 1765 1765 { 1766 1766 struct rhine_private *rp = netdev_priv(dev); 1767 1767 void __iomem *ioaddr = rp->base;
+1 -1
drivers/net/ethernet/wiznet/w5100.c
··· 790 790 w5100_restart(priv->ndev); 791 791 } 792 792 793 - static void w5100_tx_timeout(struct net_device *ndev) 793 + static void w5100_tx_timeout(struct net_device *ndev, unsigned int txqueue) 794 794 { 795 795 struct w5100_priv *priv = netdev_priv(ndev); 796 796
+1 -1
drivers/net/ethernet/wiznet/w5300.c
··· 341 341 } 342 342 } 343 343 344 - static void w5300_tx_timeout(struct net_device *ndev) 344 + static void w5300_tx_timeout(struct net_device *ndev, unsigned int txqueue) 345 345 { 346 346 struct w5300_priv *priv = netdev_priv(ndev); 347 347
+1 -1
drivers/net/ethernet/xilinx/xilinx_emaclite.c
··· 521 521 * 522 522 * This function is called when Tx time out occurs for Emaclite device. 523 523 */ 524 - static void xemaclite_tx_timeout(struct net_device *dev) 524 + static void xemaclite_tx_timeout(struct net_device *dev, unsigned int txqueue) 525 525 { 526 526 struct net_local *lp = netdev_priv(dev); 527 527 unsigned long flags;
+2 -2
drivers/net/ethernet/xircom/xirc2ps_cs.c
··· 288 288 */ 289 289 static netdev_tx_t do_start_xmit(struct sk_buff *skb, 290 290 struct net_device *dev); 291 - static void xirc_tx_timeout(struct net_device *dev); 291 + static void xirc_tx_timeout(struct net_device *dev, unsigned int txqueue); 292 292 static void xirc2ps_tx_timeout_task(struct work_struct *work); 293 293 static void set_addresses(struct net_device *dev); 294 294 static void set_multicast_list(struct net_device *dev); ··· 1203 1203 } 1204 1204 1205 1205 static void 1206 - xirc_tx_timeout(struct net_device *dev) 1206 + xirc_tx_timeout(struct net_device *dev, unsigned int txqueue) 1207 1207 { 1208 1208 struct local_info *lp = netdev_priv(dev); 1209 1209 dev->stats.tx_errors++;
+2 -2
drivers/net/fjes/fjes_main.c
··· 48 48 static int fjes_change_mtu(struct net_device *, int); 49 49 static int fjes_vlan_rx_add_vid(struct net_device *, __be16 proto, u16); 50 50 static int fjes_vlan_rx_kill_vid(struct net_device *, __be16 proto, u16); 51 - static void fjes_tx_retry(struct net_device *); 51 + static void fjes_tx_retry(struct net_device *, unsigned int txqueue); 52 52 53 53 static int fjes_acpi_add(struct acpi_device *); 54 54 static int fjes_acpi_remove(struct acpi_device *); ··· 792 792 return ret; 793 793 } 794 794 795 - static void fjes_tx_retry(struct net_device *netdev) 795 + static void fjes_tx_retry(struct net_device *netdev, unsigned int txqueue) 796 796 { 797 797 struct netdev_queue *queue = netdev_get_tx_queue(netdev, 0); 798 798
+1 -1
drivers/net/slip/slip.c
··· 457 457 schedule_work(&sl->tx_work); 458 458 } 459 459 460 - static void sl_tx_timeout(struct net_device *dev) 460 + static void sl_tx_timeout(struct net_device *dev, unsigned int txqueue) 461 461 { 462 462 struct slip *sl = netdev_priv(dev); 463 463
+1 -1
drivers/net/usb/catc.c
··· 447 447 return NETDEV_TX_OK; 448 448 } 449 449 450 - static void catc_tx_timeout(struct net_device *netdev) 450 + static void catc_tx_timeout(struct net_device *netdev, unsigned int txqueue) 451 451 { 452 452 struct catc *catc = netdev_priv(netdev); 453 453
+1 -1
drivers/net/usb/hso.c
··· 820 820 }; 821 821 822 822 /* called when a packet did not ack after watchdogtimeout */ 823 - static void hso_net_tx_timeout(struct net_device *net) 823 + static void hso_net_tx_timeout(struct net_device *net, unsigned int txqueue) 824 824 { 825 825 struct hso_net *odev = netdev_priv(net); 826 826
+1 -1
drivers/net/usb/ipheth.c
··· 400 400 return NETDEV_TX_OK; 401 401 } 402 402 403 - static void ipheth_tx_timeout(struct net_device *net) 403 + static void ipheth_tx_timeout(struct net_device *net, unsigned int txqueue) 404 404 { 405 405 struct ipheth_device *dev = netdev_priv(net); 406 406
+1 -1
drivers/net/usb/kaweth.c
··· 894 894 /**************************************************************** 895 895 * kaweth_tx_timeout 896 896 ****************************************************************/ 897 - static void kaweth_tx_timeout(struct net_device *net) 897 + static void kaweth_tx_timeout(struct net_device *net, unsigned int txqueue) 898 898 { 899 899 struct kaweth_device *kaweth = netdev_priv(net); 900 900
+1 -1
drivers/net/usb/lan78xx.c
··· 3662 3662 usb_put_dev(udev); 3663 3663 } 3664 3664 3665 - static void lan78xx_tx_timeout(struct net_device *net) 3665 + static void lan78xx_tx_timeout(struct net_device *net, unsigned int txqueue) 3666 3666 { 3667 3667 struct lan78xx_net *dev = netdev_priv(net); 3668 3668
+1 -1
drivers/net/usb/pegasus.c
··· 693 693 "can't resubmit interrupt urb, %d\n", res); 694 694 } 695 695 696 - static void pegasus_tx_timeout(struct net_device *net) 696 + static void pegasus_tx_timeout(struct net_device *net, unsigned int txqueue) 697 697 { 698 698 pegasus_t *pegasus = netdev_priv(net); 699 699 netif_warn(pegasus, timer, net, "tx timeout\n");
+1 -1
drivers/net/usb/r8152.c
··· 2507 2507 } 2508 2508 } 2509 2509 2510 - static void rtl8152_tx_timeout(struct net_device *netdev) 2510 + static void rtl8152_tx_timeout(struct net_device *netdev, unsigned int txqueue) 2511 2511 { 2512 2512 struct r8152 *tp = netdev_priv(netdev); 2513 2513
+1 -1
drivers/net/usb/rtl8150.c
··· 655 655 set_registers(dev, CR, 1, &cr); 656 656 } 657 657 658 - static void rtl8150_tx_timeout(struct net_device *netdev) 658 + static void rtl8150_tx_timeout(struct net_device *netdev, unsigned int txqueue) 659 659 { 660 660 rtl8150_t *dev = netdev_priv(netdev); 661 661 dev_warn(&netdev->dev, "Tx timeout.\n");
+1 -1
drivers/net/usb/usbnet.c
··· 1293 1293 1294 1294 /*-------------------------------------------------------------------------*/ 1295 1295 1296 - void usbnet_tx_timeout (struct net_device *net) 1296 + void usbnet_tx_timeout (struct net_device *net, unsigned int txqueue) 1297 1297 { 1298 1298 struct usbnet *dev = netdev_priv(net); 1299 1299
+1 -1
drivers/net/vmxnet3/vmxnet3_drv.c
··· 3198 3198 3199 3199 3200 3200 static void 3201 - vmxnet3_tx_timeout(struct net_device *netdev) 3201 + vmxnet3_tx_timeout(struct net_device *netdev, unsigned int txqueue) 3202 3202 { 3203 3203 struct vmxnet3_adapter *adapter = netdev_priv(netdev); 3204 3204 adapter->tx_timeout_count++;
+2 -2
drivers/net/wan/cosa.c
··· 268 268 unsigned short parity); 269 269 static int cosa_net_open(struct net_device *d); 270 270 static int cosa_net_close(struct net_device *d); 271 - static void cosa_net_timeout(struct net_device *d); 271 + static void cosa_net_timeout(struct net_device *d, unsigned int txqueue); 272 272 static netdev_tx_t cosa_net_tx(struct sk_buff *skb, struct net_device *d); 273 273 static char *cosa_net_setup_rx(struct channel_data *channel, int size); 274 274 static int cosa_net_rx_done(struct channel_data *channel); ··· 670 670 return NETDEV_TX_OK; 671 671 } 672 672 673 - static void cosa_net_timeout(struct net_device *dev) 673 + static void cosa_net_timeout(struct net_device *dev, unsigned int txqueue) 674 674 { 675 675 struct channel_data *chan = dev_to_chan(dev); 676 676
+1 -1
drivers/net/wan/farsync.c
··· 2239 2239 } 2240 2240 2241 2241 static void 2242 - fst_tx_timeout(struct net_device *dev) 2242 + fst_tx_timeout(struct net_device *dev, unsigned int txqueue) 2243 2243 { 2244 2244 struct fst_port_info *port; 2245 2245 struct fst_card_info *card;
+1 -1
drivers/net/wan/fsl_ucc_hdlc.c
··· 1039 1039 #define HDLC_PM_OPS NULL 1040 1040 1041 1041 #endif 1042 - static void uhdlc_tx_timeout(struct net_device *ndev) 1042 + static void uhdlc_tx_timeout(struct net_device *ndev, unsigned int txqueue) 1043 1043 { 1044 1044 netdev_err(ndev, "%s\n", __func__); 1045 1045 }
+2 -2
drivers/net/wan/lmc/lmc_main.c
··· 99 99 static void lmc_watchdog(struct timer_list *t); 100 100 static void lmc_reset(lmc_softc_t * const sc); 101 101 static void lmc_dec_reset(lmc_softc_t * const sc); 102 - static void lmc_driver_timeout(struct net_device *dev); 102 + static void lmc_driver_timeout(struct net_device *dev, unsigned int txqueue); 103 103 104 104 /* 105 105 * linux reserves 16 device specific IOCTLs. We call them ··· 2044 2044 lmc_trace(sc->lmc_device, "lmc_initcsrs out"); 2045 2045 } 2046 2046 2047 - static void lmc_driver_timeout(struct net_device *dev) 2047 + static void lmc_driver_timeout(struct net_device *dev, unsigned int txqueue) 2048 2048 { 2049 2049 lmc_softc_t *sc = dev_to_sc(dev); 2050 2050 u32 csr6;
+1 -1
drivers/net/wan/x25_asy.c
··· 276 276 sl->xhead += actual; 277 277 } 278 278 279 - static void x25_asy_timeout(struct net_device *dev) 279 + static void x25_asy_timeout(struct net_device *dev, unsigned int txqueue) 280 280 { 281 281 struct x25_asy *sl = netdev_priv(dev); 282 282
+1 -1
drivers/net/wimax/i2400m/netdev.c
··· 380 380 381 381 382 382 static 383 - void i2400m_tx_timeout(struct net_device *net_dev) 383 + void i2400m_tx_timeout(struct net_device *net_dev, unsigned int txqueue) 384 384 { 385 385 /* 386 386 * We might want to kick the device
+1 -1
drivers/net/wireless/intel/ipw2x00/ipw2100.c
··· 5833 5833 /* 5834 5834 * TODO: Fix this function... its just wrong 5835 5835 */ 5836 - static void ipw2100_tx_timeout(struct net_device *dev) 5836 + static void ipw2100_tx_timeout(struct net_device *dev, unsigned int txqueue) 5837 5837 { 5838 5838 struct ipw2100_priv *priv = libipw_priv(dev); 5839 5839
+1 -1
drivers/net/wireless/intersil/hostap/hostap_main.c
··· 761 761 } 762 762 763 763 764 - static void prism2_tx_timeout(struct net_device *dev) 764 + static void prism2_tx_timeout(struct net_device *dev, unsigned int txqueue) 765 765 { 766 766 struct hostap_interface *iface; 767 767 local_info_t *local;
+1 -1
drivers/net/wireless/intersil/orinoco/main.c
··· 647 647 netif_wake_queue(dev); 648 648 } 649 649 650 - void orinoco_tx_timeout(struct net_device *dev) 650 + void orinoco_tx_timeout(struct net_device *dev, unsigned int txqueue) 651 651 { 652 652 struct orinoco_private *priv = ndev_priv(dev); 653 653 struct net_device_stats *stats = &dev->stats;
+1 -1
drivers/net/wireless/intersil/orinoco/orinoco.h
··· 207 207 int orinoco_stop(struct net_device *dev); 208 208 void orinoco_set_multicast_list(struct net_device *dev); 209 209 int orinoco_change_mtu(struct net_device *dev, int new_mtu); 210 - void orinoco_tx_timeout(struct net_device *dev); 210 + void orinoco_tx_timeout(struct net_device *dev, unsigned int txqueue); 211 211 212 212 /********************************************************************/ 213 213 /* Locking and synchronization functions */
+1 -1
drivers/net/wireless/intersil/prism54/islpci_eth.c
··· 473 473 } 474 474 475 475 void 476 - islpci_eth_tx_timeout(struct net_device *ndev) 476 + islpci_eth_tx_timeout(struct net_device *ndev, unsigned int txqueue) 477 477 { 478 478 islpci_private *priv = netdev_priv(ndev); 479 479
+1 -1
drivers/net/wireless/intersil/prism54/islpci_eth.h
··· 53 53 void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *); 54 54 netdev_tx_t islpci_eth_transmit(struct sk_buff *, struct net_device *); 55 55 int islpci_eth_receive(islpci_private *); 56 - void islpci_eth_tx_timeout(struct net_device *); 56 + void islpci_eth_tx_timeout(struct net_device *, unsigned int txqueue); 57 57 void islpci_do_reset_and_wake(struct work_struct *); 58 58 59 59 #endif /* _ISL_GEN_H */
+1 -1
drivers/net/wireless/marvell/mwifiex/main.c
··· 1020 1020 * CFG802.11 network device handler for transmission timeout. 1021 1021 */ 1022 1022 static void 1023 - mwifiex_tx_timeout(struct net_device *dev) 1023 + mwifiex_tx_timeout(struct net_device *dev, unsigned int txqueue) 1024 1024 { 1025 1025 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); 1026 1026
+1 -1
drivers/net/wireless/quantenna/qtnfmac/core.c
··· 156 156 157 157 /* Netdev handler for transmission timeout. 158 158 */ 159 - static void qtnf_netdev_tx_timeout(struct net_device *ndev) 159 + static void qtnf_netdev_tx_timeout(struct net_device *ndev, unsigned int txqueue) 160 160 { 161 161 struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); 162 162 struct qtnf_wmac *mac;
+1 -1
drivers/net/wireless/wl3501_cs.c
··· 1285 1285 return rc; 1286 1286 } 1287 1287 1288 - static void wl3501_tx_timeout(struct net_device *dev) 1288 + static void wl3501_tx_timeout(struct net_device *dev, unsigned int txqueue) 1289 1289 { 1290 1290 struct net_device_stats *stats = &dev->stats; 1291 1291 int rc;
+1 -1
drivers/net/wireless/zydas/zd1201.c
··· 830 830 return NETDEV_TX_OK; 831 831 } 832 832 833 - static void zd1201_tx_timeout(struct net_device *dev) 833 + static void zd1201_tx_timeout(struct net_device *dev, unsigned int txqueue) 834 834 { 835 835 struct zd1201 *zd = netdev_priv(dev); 836 836
+1 -1
drivers/s390/net/qeth_core.h
··· 1076 1076 void qeth_drain_output_queues(struct qeth_card *card); 1077 1077 void qeth_setadp_promisc_mode(struct qeth_card *card, bool enable); 1078 1078 int qeth_setadpparms_change_macaddr(struct qeth_card *); 1079 - void qeth_tx_timeout(struct net_device *); 1079 + void qeth_tx_timeout(struct net_device *, unsigned int txqueue); 1080 1080 void qeth_prepare_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, 1081 1081 u16 cmd_length); 1082 1082 int qeth_query_switch_attributes(struct qeth_card *card,
+1 -1
drivers/s390/net/qeth_core_main.c
··· 4325 4325 return rc; 4326 4326 } 4327 4327 4328 - void qeth_tx_timeout(struct net_device *dev) 4328 + void qeth_tx_timeout(struct net_device *dev, unsigned int txqueue) 4329 4329 { 4330 4330 struct qeth_card *card; 4331 4331
+2 -2
drivers/staging/ks7010/ks_wlan_net.c
··· 45 45 * function prototypes 46 46 */ 47 47 static int ks_wlan_open(struct net_device *dev); 48 - static void ks_wlan_tx_timeout(struct net_device *dev); 48 + static void ks_wlan_tx_timeout(struct net_device *dev, unsigned int txqueue); 49 49 static int ks_wlan_start_xmit(struct sk_buff *skb, struct net_device *dev); 50 50 static int ks_wlan_close(struct net_device *dev); 51 51 static void ks_wlan_set_rx_mode(struct net_device *dev); ··· 2498 2498 } 2499 2499 2500 2500 static 2501 - void ks_wlan_tx_timeout(struct net_device *dev) 2501 + void ks_wlan_tx_timeout(struct net_device *dev, unsigned int txqueue) 2502 2502 { 2503 2503 struct ks_wlan_private *priv = netdev_priv(dev); 2504 2504
+1 -1
drivers/staging/qlge/qlge_main.c
··· 4274 4274 return status; 4275 4275 } 4276 4276 4277 - static void qlge_tx_timeout(struct net_device *ndev) 4277 + static void qlge_tx_timeout(struct net_device *ndev, unsigned int txqueue) 4278 4278 { 4279 4279 struct ql_adapter *qdev = netdev_priv(ndev); 4280 4280 ql_queue_asic_error(qdev);
+1 -1
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
··· 267 267 return 0; 268 268 } 269 269 270 - static void _rtl92e_tx_timeout(struct net_device *dev) 270 + static void _rtl92e_tx_timeout(struct net_device *dev, unsigned int txqueue) 271 271 { 272 272 struct r8192_priv *priv = rtllib_priv(dev); 273 273
+1 -1
drivers/staging/rtl8192u/r8192U_core.c
··· 640 640 return (used < MAX_TX_URB); 641 641 } 642 642 643 - static void tx_timeout(struct net_device *dev) 643 + static void tx_timeout(struct net_device *dev, unsigned int txqueue) 644 644 { 645 645 struct r8192_priv *priv = ieee80211_priv(dev); 646 646
+1 -1
drivers/staging/unisys/visornic/visornic_main.c
··· 1078 1078 * Queue the work and return. Make sure we have not already been informed that 1079 1079 * the IO Partition is gone; if so, we will have already timed-out the xmits. 1080 1080 */ 1081 - static void visornic_xmit_timeout(struct net_device *netdev) 1081 + static void visornic_xmit_timeout(struct net_device *netdev, unsigned int txqueue) 1082 1082 { 1083 1083 struct visornic_devdata *devdata = netdev_priv(netdev); 1084 1084 unsigned long flags;
+2 -2
drivers/staging/wlan-ng/p80211netdev.c
··· 101 101 static int p80211knetdev_do_ioctl(struct net_device *dev, struct ifreq *ifr, 102 102 int cmd); 103 103 static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr); 104 - static void p80211knetdev_tx_timeout(struct net_device *netdev); 104 + static void p80211knetdev_tx_timeout(struct net_device *netdev, unsigned int txqueue); 105 105 static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc); 106 106 107 107 int wlan_watchdog = 5000; ··· 1074 1074 return drop; 1075 1075 } 1076 1076 1077 - static void p80211knetdev_tx_timeout(struct net_device *netdev) 1077 + static void p80211knetdev_tx_timeout(struct net_device *netdev, unsigned int txqueue) 1078 1078 { 1079 1079 struct wlandevice *wlandev = netdev->ml_priv; 1080 1080
+1 -1
drivers/tty/n_gsm.c
··· 2704 2704 } 2705 2705 2706 2706 /* called when a packet did not ack after watchdogtimeout */ 2707 - static void gsm_mux_net_tx_timeout(struct net_device *net) 2707 + static void gsm_mux_net_tx_timeout(struct net_device *net, unsigned int txqueue) 2708 2708 { 2709 2709 /* Tell syslog we are hosed. */ 2710 2710 dev_dbg(&net->dev, "Tx timed out.\n");
+1 -1
drivers/tty/synclink.c
··· 7837 7837 * 7838 7838 * dev pointer to network device structure 7839 7839 */ 7840 - static void hdlcdev_tx_timeout(struct net_device *dev) 7840 + static void hdlcdev_tx_timeout(struct net_device *dev, unsigned int txqueue) 7841 7841 { 7842 7842 struct mgsl_struct *info = dev_to_port(dev); 7843 7843 unsigned long flags;
+1 -1
drivers/tty/synclinkmp.c
··· 1807 1807 * 1808 1808 * dev pointer to network device structure 1809 1809 */ 1810 - static void hdlcdev_tx_timeout(struct net_device *dev) 1810 + static void hdlcdev_tx_timeout(struct net_device *dev, unsigned int txqueue) 1811 1811 { 1812 1812 SLMP_INFO *info = dev_to_port(dev); 1813 1813 unsigned long flags;
+3 -2
include/linux/netdevice.h
··· 1014 1014 * Called when a user wants to change the Maximum Transfer Unit 1015 1015 * of a device. 1016 1016 * 1017 - * void (*ndo_tx_timeout)(struct net_device *dev); 1017 + * void (*ndo_tx_timeout)(struct net_device *dev, unsigned int txqueue); 1018 1018 * Callback used when the transmitter has not made any progress 1019 1019 * for dev->watchdog ticks. 1020 1020 * ··· 1281 1281 int new_mtu); 1282 1282 int (*ndo_neigh_setup)(struct net_device *dev, 1283 1283 struct neigh_parms *); 1284 - void (*ndo_tx_timeout) (struct net_device *dev); 1284 + void (*ndo_tx_timeout) (struct net_device *dev, 1285 + unsigned int txqueue); 1285 1286 1286 1287 void (*ndo_get_stats64)(struct net_device *dev, 1287 1288 struct rtnl_link_stats64 *storage);
+1 -1
include/linux/usb/usbnet.h
··· 253 253 extern int usbnet_stop(struct net_device *net); 254 254 extern netdev_tx_t usbnet_start_xmit(struct sk_buff *skb, 255 255 struct net_device *net); 256 - extern void usbnet_tx_timeout(struct net_device *net); 256 + extern void usbnet_tx_timeout(struct net_device *net, unsigned int txqueue); 257 257 extern int usbnet_change_mtu(struct net_device *net, int new_mtu); 258 258 259 259 extern int usbnet_get_endpoints(struct usbnet *, struct usb_interface *);
+1 -1
net/atm/lec.c
··· 194 194 dev->stats.tx_bytes += skb->len; 195 195 } 196 196 197 - static void lec_tx_timeout(struct net_device *dev) 197 + static void lec_tx_timeout(struct net_device *dev, unsigned int txqueue) 198 198 { 199 199 pr_info("%s\n", dev->name); 200 200 netif_trans_update(dev);
+1 -1
net/bluetooth/bnep/netdev.c
··· 112 112 return 0; 113 113 } 114 114 115 - static void bnep_net_timeout(struct net_device *dev) 115 + static void bnep_net_timeout(struct net_device *dev, unsigned int txqueue) 116 116 { 117 117 BT_DBG("net_timeout"); 118 118 netif_wake_queue(dev);
+1 -1
net/sched/sch_generic.c
··· 441 441 trace_net_dev_xmit_timeout(dev, i); 442 442 WARN_ONCE(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit queue %u timed out\n", 443 443 dev->name, netdev_drivername(dev), i); 444 - dev->netdev_ops->ndo_tx_timeout(dev); 444 + dev->netdev_ops->ndo_tx_timeout(dev, i); 445 445 } 446 446 if (!mod_timer(&dev->watchdog_timer, 447 447 round_jiffies(jiffies +