Merge branch 'netdev-ndo_tx_timeout-cleanup'
Michael S. Tsirkin says: ==================== netdev: ndo_tx_timeout cleanup Yet another forward declaration I missed. Hopfully the last one ... A bunch of drivers want to know which tx queue triggered a timeout, and virtio wants to do the same. We actually have the info to hand, let's just pass it on to drivers. Note: tested with an experimental virtio patch by Julio. That patch itself isn't ready yet though, so not included. Other drivers compiled only. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
1f4782ae24
|
@ -167,7 +167,7 @@ static int nfeth_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void nfeth_tx_timeout(struct net_device *dev)
|
||||
static void nfeth_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
dev->stats.tx_errors++;
|
||||
netif_wake_queue(dev);
|
||||
|
|
|
@ -247,7 +247,7 @@ static void uml_net_set_multicast_list(struct net_device *dev)
|
|||
return;
|
||||
}
|
||||
|
||||
static void uml_net_tx_timeout(struct net_device *dev)
|
||||
static void uml_net_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
netif_trans_update(dev);
|
||||
netif_wake_queue(dev);
|
||||
|
|
|
@ -1332,7 +1332,7 @@ static void vector_net_set_multicast_list(struct net_device *dev)
|
|||
return;
|
||||
}
|
||||
|
||||
static void vector_net_tx_timeout(struct net_device *dev)
|
||||
static void vector_net_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct vector_private *vp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -455,7 +455,7 @@ static void iss_net_set_multicast_list(struct net_device *dev)
|
|||
{
|
||||
}
|
||||
|
||||
static void iss_net_tx_timeout(struct net_device *dev)
|
||||
static void iss_net_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -4169,7 +4169,7 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||
*
|
||||
* dev pointer to network device structure
|
||||
*/
|
||||
static void hdlcdev_tx_timeout(struct net_device *dev)
|
||||
static void hdlcdev_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
MGSLPC_INFO *info = dev_to_port(dev);
|
||||
unsigned long flags;
|
||||
|
|
|
@ -1182,7 +1182,7 @@ unref:
|
|||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
static void ipoib_timeout(struct net_device *dev)
|
||||
static void ipoib_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ipoib_dev_priv *priv = ipoib_priv(dev);
|
||||
|
||||
|
|
|
@ -552,7 +552,7 @@ mpt_lan_close(struct net_device *dev)
|
|||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/* Tx timeout handler. */
|
||||
static void
|
||||
mpt_lan_tx_timeout(struct net_device *dev)
|
||||
mpt_lan_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct mpt_lan_priv *priv = netdev_priv(dev);
|
||||
MPT_ADAPTER *mpt_dev = priv->mpt_dev;
|
||||
|
|
|
@ -496,7 +496,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
* Deal with transmit timeouts coming from the network layer.
|
||||
*/
|
||||
static void
|
||||
xpnet_dev_tx_timeout(struct net_device *dev)
|
||||
xpnet_dev_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
dev->stats.tx_errors++;
|
||||
}
|
||||
|
|
|
@ -189,7 +189,7 @@ static int cops_nodeid (struct net_device *dev, int nodeid);
|
|||
|
||||
static irqreturn_t cops_interrupt (int irq, void *dev_id);
|
||||
static void cops_poll(struct timer_list *t);
|
||||
static void cops_timeout(struct net_device *dev);
|
||||
static void cops_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void cops_rx (struct net_device *dev);
|
||||
static netdev_tx_t cops_send_packet (struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
|
@ -844,7 +844,7 @@ static void cops_rx(struct net_device *dev)
|
|||
netif_rx(skb);
|
||||
}
|
||||
|
||||
static void cops_timeout(struct net_device *dev)
|
||||
static void cops_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct cops_local *lp = netdev_priv(dev);
|
||||
int ioaddr = dev->base_addr;
|
||||
|
|
|
@ -356,7 +356,7 @@ int arcnet_open(struct net_device *dev);
|
|||
int arcnet_close(struct net_device *dev);
|
||||
netdev_tx_t arcnet_send_packet(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
void arcnet_timeout(struct net_device *dev);
|
||||
void arcnet_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
/* I/O equivalents */
|
||||
|
||||
|
|
|
@ -763,7 +763,7 @@ static int go_tx(struct net_device *dev)
|
|||
}
|
||||
|
||||
/* Called by the kernel when transmit times out */
|
||||
void arcnet_timeout(struct net_device *dev)
|
||||
void arcnet_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct arcnet_local *lp = netdev_priv(dev);
|
||||
|
|
|
@ -196,7 +196,7 @@ static struct net_device_stats *el3_get_stats(struct net_device *dev);
|
|||
static int el3_rx(struct net_device *dev);
|
||||
static int el3_close(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static void el3_tx_timeout (struct net_device *dev);
|
||||
static void el3_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
static void el3_down(struct net_device *dev);
|
||||
static void el3_up(struct net_device *dev);
|
||||
static const struct ethtool_ops ethtool_ops;
|
||||
|
@ -689,7 +689,7 @@ el3_open(struct net_device *dev)
|
|||
}
|
||||
|
||||
static void
|
||||
el3_tx_timeout (struct net_device *dev)
|
||||
el3_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
int ioaddr = dev->base_addr;
|
||||
|
||||
|
|
|
@ -371,7 +371,7 @@ static void corkscrew_timer(struct timer_list *t);
|
|||
static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
static int corkscrew_rx(struct net_device *dev);
|
||||
static void corkscrew_timeout(struct net_device *dev);
|
||||
static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static int boomerang_rx(struct net_device *dev);
|
||||
static irqreturn_t corkscrew_interrupt(int irq, void *dev_id);
|
||||
static int corkscrew_close(struct net_device *dev);
|
||||
|
@ -961,7 +961,7 @@ static void corkscrew_timer(struct timer_list *t)
|
|||
#endif /* AUTOMEDIA */
|
||||
}
|
||||
|
||||
static void corkscrew_timeout(struct net_device *dev)
|
||||
static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
int i;
|
||||
struct corkscrew_private *vp = netdev_priv(dev);
|
||||
|
|
|
@ -234,7 +234,7 @@ static void update_stats(struct net_device *dev);
|
|||
static struct net_device_stats *el3_get_stats(struct net_device *dev);
|
||||
static int el3_rx(struct net_device *dev, int worklimit);
|
||||
static int el3_close(struct net_device *dev);
|
||||
static void el3_tx_timeout(struct net_device *dev);
|
||||
static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
||||
static void set_rx_mode(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
|
@ -690,7 +690,7 @@ static int el3_open(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void el3_tx_timeout(struct net_device *dev)
|
||||
static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
unsigned int ioaddr = dev->base_addr;
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ static void update_stats(struct net_device *dev);
|
|||
static struct net_device_stats *el3_get_stats(struct net_device *dev);
|
||||
static int el3_rx(struct net_device *dev);
|
||||
static int el3_close(struct net_device *dev);
|
||||
static void el3_tx_timeout(struct net_device *dev);
|
||||
static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void set_rx_mode(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
@ -526,7 +526,7 @@ static int el3_open(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void el3_tx_timeout(struct net_device *dev)
|
||||
static void el3_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
unsigned int ioaddr = dev->base_addr;
|
||||
|
||||
|
|
|
@ -776,7 +776,7 @@ static void set_rx_mode(struct net_device *dev);
|
|||
#ifdef CONFIG_PCI
|
||||
static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
||||
#endif
|
||||
static void vortex_tx_timeout(struct net_device *dev);
|
||||
static void vortex_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void acpi_set_WOL(struct net_device *dev);
|
||||
static const struct ethtool_ops vortex_ethtool_ops;
|
||||
static void set_8021q_mode(struct net_device *dev, int enable);
|
||||
|
@ -1877,7 +1877,7 @@ leave_media_alone:
|
|||
iowrite16(FakeIntr, ioaddr + EL3_CMD);
|
||||
}
|
||||
|
||||
static void vortex_tx_timeout(struct net_device *dev)
|
||||
static void vortex_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct vortex_private *vp = netdev_priv(dev);
|
||||
void __iomem *ioaddr = vp->ioaddr;
|
||||
|
|
|
@ -2013,7 +2013,7 @@ typhoon_stop_runtime(struct typhoon *tp, int wait_type)
|
|||
}
|
||||
|
||||
static void
|
||||
typhoon_tx_timeout(struct net_device *dev)
|
||||
typhoon_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct typhoon *tp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -36,9 +36,9 @@ void ei_set_multicast_list(struct net_device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL(ei_set_multicast_list);
|
||||
|
||||
void ei_tx_timeout(struct net_device *dev)
|
||||
void ei_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
__ei_tx_timeout(dev);
|
||||
__ei_tx_timeout(dev, txqueue);
|
||||
}
|
||||
EXPORT_SYMBOL(ei_tx_timeout);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ void NS8390_init(struct net_device *dev, int startp);
|
|||
int ei_open(struct net_device *dev);
|
||||
int ei_close(struct net_device *dev);
|
||||
irqreturn_t ei_interrupt(int irq, void *dev_id);
|
||||
void ei_tx_timeout(struct net_device *dev);
|
||||
void ei_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
netdev_tx_t ei_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
void ei_set_multicast_list(struct net_device *dev);
|
||||
struct net_device_stats *ei_get_stats(struct net_device *dev);
|
||||
|
@ -50,7 +50,7 @@ void NS8390p_init(struct net_device *dev, int startp);
|
|||
int eip_open(struct net_device *dev);
|
||||
int eip_close(struct net_device *dev);
|
||||
irqreturn_t eip_interrupt(int irq, void *dev_id);
|
||||
void eip_tx_timeout(struct net_device *dev);
|
||||
void eip_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
netdev_tx_t eip_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
void eip_set_multicast_list(struct net_device *dev);
|
||||
struct net_device_stats *eip_get_stats(struct net_device *dev);
|
||||
|
|
|
@ -41,9 +41,9 @@ void eip_set_multicast_list(struct net_device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL(eip_set_multicast_list);
|
||||
|
||||
void eip_tx_timeout(struct net_device *dev)
|
||||
void eip_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
__ei_tx_timeout(dev);
|
||||
__ei_tx_timeout(dev, txqueue);
|
||||
}
|
||||
EXPORT_SYMBOL(eip_tx_timeout);
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ static netdev_tx_t axnet_start_xmit(struct sk_buff *skb,
|
|||
struct net_device *dev);
|
||||
static struct net_device_stats *get_stats(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static void axnet_tx_timeout(struct net_device *dev);
|
||||
static void axnet_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static irqreturn_t ei_irq_wrapper(int irq, void *dev_id);
|
||||
static void ei_watchdog(struct timer_list *t);
|
||||
static void axnet_reset_8390(struct net_device *dev);
|
||||
|
@ -903,7 +903,7 @@ static int ax_close(struct net_device *dev)
|
|||
* completed (or failed) - i.e. never posted a Tx related interrupt.
|
||||
*/
|
||||
|
||||
static void axnet_tx_timeout(struct net_device *dev)
|
||||
static void axnet_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
long e8390_base = dev->base_addr;
|
||||
struct ei_device *ei_local = netdev_priv(dev);
|
||||
|
|
|
@ -251,7 +251,7 @@ static int __ei_close(struct net_device *dev)
|
|||
* completed (or failed) - i.e. never posted a Tx related interrupt.
|
||||
*/
|
||||
|
||||
static void __ei_tx_timeout(struct net_device *dev)
|
||||
static void __ei_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
unsigned long e8390_base = dev->base_addr;
|
||||
struct ei_device *ei_local = netdev_priv(dev);
|
||||
|
|
|
@ -576,7 +576,7 @@ static int mdio_read(struct net_device *dev, int phy_id, int location);
|
|||
static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
|
||||
static int netdev_open(struct net_device *dev);
|
||||
static void check_duplex(struct net_device *dev);
|
||||
static void tx_timeout(struct net_device *dev);
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void init_ring(struct net_device *dev);
|
||||
static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev);
|
||||
static irqreturn_t intr_handler(int irq, void *dev_instance);
|
||||
|
@ -1105,7 +1105,7 @@ static void check_duplex(struct net_device *dev)
|
|||
}
|
||||
|
||||
|
||||
static void tx_timeout(struct net_device *dev)
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
void __iomem *ioaddr = np->base;
|
||||
|
|
|
@ -3811,7 +3811,7 @@ drop_err:
|
|||
* specified by the 'tx_timeo" element in the net_device structure (see
|
||||
* et131x_alloc_device() to see how this value is set).
|
||||
*/
|
||||
static void et131x_tx_timeout(struct net_device *netdev)
|
||||
static void et131x_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct et131x_adapter *adapter = netdev_priv(netdev);
|
||||
struct tx_ring *tx_ring = &adapter->tx_ring;
|
||||
|
|
|
@ -407,7 +407,7 @@ static void emac_init_device(struct net_device *dev)
|
|||
}
|
||||
|
||||
/* Our watchdog timed out. Called by the networking layer */
|
||||
static void emac_timeout(struct net_device *dev)
|
||||
static void emac_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct emac_board_info *db = netdev_priv(dev);
|
||||
unsigned long flags;
|
||||
|
|
|
@ -437,7 +437,7 @@ static const struct ethtool_ops ace_ethtool_ops = {
|
|||
.set_link_ksettings = ace_set_link_ksettings,
|
||||
};
|
||||
|
||||
static void ace_watchdog(struct net_device *dev);
|
||||
static void ace_watchdog(struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
static const struct net_device_ops ace_netdev_ops = {
|
||||
.ndo_open = ace_open,
|
||||
|
@ -1542,7 +1542,7 @@ static void ace_set_rxtx_parms(struct net_device *dev, int jumbo)
|
|||
}
|
||||
|
||||
|
||||
static void ace_watchdog(struct net_device *data)
|
||||
static void ace_watchdog(struct net_device *data, unsigned int txqueue)
|
||||
{
|
||||
struct net_device *dev = data;
|
||||
struct ace_private *ap = netdev_priv(dev);
|
||||
|
|
|
@ -108,7 +108,7 @@ static void ena_unmap_tx_buff(struct ena_ring *tx_ring,
|
|||
static int ena_create_io_tx_queues_in_range(struct ena_adapter *adapter,
|
||||
int first_index, int count);
|
||||
|
||||
static void ena_tx_timeout(struct net_device *dev)
|
||||
static void ena_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ena_adapter *adapter = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -527,7 +527,7 @@ int lance_close(struct net_device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(lance_close);
|
||||
|
||||
void lance_tx_timeout(struct net_device *dev)
|
||||
void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
printk("lance_tx_timeout\n");
|
||||
lance_reset(dev);
|
||||
|
|
|
@ -243,7 +243,7 @@ int lance_open(struct net_device *dev);
|
|||
int lance_close(struct net_device *dev);
|
||||
int lance_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
void lance_set_multicast(struct net_device *dev);
|
||||
void lance_tx_timeout(struct net_device *dev);
|
||||
void lance_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||
void lance_poll(struct net_device *dev);
|
||||
#endif
|
||||
|
|
|
@ -522,7 +522,7 @@ static inline int lance_reset(struct net_device *dev)
|
|||
return status;
|
||||
}
|
||||
|
||||
static void lance_tx_timeout(struct net_device *dev)
|
||||
static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct lance_private *lp = netdev_priv(dev);
|
||||
volatile struct lance_regs *ll = lp->ll;
|
||||
|
|
|
@ -422,7 +422,7 @@ static void am79c961_setmulticastlist (struct net_device *dev)
|
|||
spin_unlock_irqrestore(&priv->chip_lock, flags);
|
||||
}
|
||||
|
||||
static void am79c961_timeout(struct net_device *dev)
|
||||
static void am79c961_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
printk(KERN_WARNING "%s: transmit timed out, network cable problem?\n",
|
||||
dev->name);
|
||||
|
|
|
@ -1569,7 +1569,7 @@ static int amd8111e_enable_link_change(struct amd8111e_priv *lp)
|
|||
* failed or the interface is locked up. This function will reinitialize
|
||||
* the hardware.
|
||||
*/
|
||||
static void amd8111e_tx_timeout(struct net_device *dev)
|
||||
static void amd8111e_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct amd8111e_priv *lp = netdev_priv(dev);
|
||||
int err;
|
||||
|
|
|
@ -530,7 +530,7 @@ static inline void ariadne_reset(struct net_device *dev)
|
|||
netif_start_queue(dev);
|
||||
}
|
||||
|
||||
static void ariadne_tx_timeout(struct net_device *dev)
|
||||
static void ariadne_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr;
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ static int lance_rx( struct net_device *dev );
|
|||
static int lance_close( struct net_device *dev );
|
||||
static void set_multicast_list( struct net_device *dev );
|
||||
static int lance_set_mac_address( struct net_device *dev, void *addr );
|
||||
static void lance_tx_timeout (struct net_device *dev);
|
||||
static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
/************************* End of Prototypes **************************/
|
||||
|
||||
|
@ -727,7 +727,7 @@ static void lance_init_ring( struct net_device *dev )
|
|||
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
|
||||
|
||||
|
||||
static void lance_tx_timeout (struct net_device *dev)
|
||||
static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct lance_private *lp = netdev_priv(dev);
|
||||
struct lance_ioreg *IO = lp->iobase;
|
||||
|
|
|
@ -1014,7 +1014,7 @@ static netdev_tx_t au1000_tx(struct sk_buff *skb, struct net_device *dev)
|
|||
* The Tx ring has been full longer than the watchdog timeout
|
||||
* value. The transmitter must be hung?
|
||||
*/
|
||||
static void au1000_tx_timeout(struct net_device *dev)
|
||||
static void au1000_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
netdev_err(dev, "au1000_tx_timeout: dev=%p\n", dev);
|
||||
au1000_reset_mac(dev);
|
||||
|
|
|
@ -884,7 +884,7 @@ static inline int lance_reset(struct net_device *dev)
|
|||
return status;
|
||||
}
|
||||
|
||||
static void lance_tx_timeout(struct net_device *dev)
|
||||
static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct lance_private *lp = netdev_priv(dev);
|
||||
volatile struct lance_regs *ll = lp->ll;
|
||||
|
|
|
@ -306,7 +306,7 @@ static irqreturn_t lance_interrupt(int irq, void *dev_id);
|
|||
static int lance_close(struct net_device *dev);
|
||||
static struct net_device_stats *lance_get_stats(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static void lance_tx_timeout (struct net_device *dev);
|
||||
static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
|
||||
|
||||
|
@ -913,7 +913,7 @@ lance_restart(struct net_device *dev, unsigned int csr0_bits, int must_reinit)
|
|||
}
|
||||
|
||||
|
||||
static void lance_tx_timeout (struct net_device *dev)
|
||||
static void lance_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct lance_private *lp = (struct lance_private *) dev->ml_priv;
|
||||
int ioaddr = dev->base_addr;
|
||||
|
|
|
@ -254,7 +254,7 @@ static int ni65_lance_reinit(struct net_device *dev);
|
|||
static void ni65_init_lance(struct priv *p,unsigned char*,int,int);
|
||||
static netdev_tx_t ni65_send_packet(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
static void ni65_timeout(struct net_device *dev);
|
||||
static void ni65_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static int ni65_close(struct net_device *dev);
|
||||
static int ni65_alloc_buffer(struct net_device *dev);
|
||||
static void ni65_free_buffer(struct priv *p);
|
||||
|
@ -1133,7 +1133,7 @@ static void ni65_recv_intr(struct net_device *dev,int csr0)
|
|||
* kick xmitter ..
|
||||
*/
|
||||
|
||||
static void ni65_timeout(struct net_device *dev)
|
||||
static void ni65_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
int i;
|
||||
struct priv *p = dev->ml_priv;
|
||||
|
|
|
@ -407,7 +407,7 @@ static int mace_open(struct net_device *dev);
|
|||
static int mace_close(struct net_device *dev);
|
||||
static netdev_tx_t mace_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
static void mace_tx_timeout(struct net_device *dev);
|
||||
static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static irqreturn_t mace_interrupt(int irq, void *dev_id);
|
||||
static struct net_device_stats *mace_get_stats(struct net_device *dev);
|
||||
static int mace_rx(struct net_device *dev, unsigned char RxCnt);
|
||||
|
@ -837,7 +837,7 @@ mace_start_xmit
|
|||
failed, put skb back into a list."
|
||||
---------------------------------------------------------------------------- */
|
||||
|
||||
static void mace_tx_timeout(struct net_device *dev)
|
||||
static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
mace_private *lp = netdev_priv(dev);
|
||||
struct pcmcia_device *link = lp->p_dev;
|
||||
|
|
|
@ -314,7 +314,7 @@ static int pcnet32_open(struct net_device *);
|
|||
static int pcnet32_init_ring(struct net_device *);
|
||||
static netdev_tx_t pcnet32_start_xmit(struct sk_buff *,
|
||||
struct net_device *);
|
||||
static void pcnet32_tx_timeout(struct net_device *dev);
|
||||
static void pcnet32_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static irqreturn_t pcnet32_interrupt(int, void *);
|
||||
static int pcnet32_close(struct net_device *);
|
||||
static struct net_device_stats *pcnet32_get_stats(struct net_device *);
|
||||
|
@ -2455,7 +2455,7 @@ static void pcnet32_restart(struct net_device *dev, unsigned int csr0_bits)
|
|||
lp->a->write_csr(ioaddr, CSR0, csr0_bits);
|
||||
}
|
||||
|
||||
static void pcnet32_tx_timeout(struct net_device *dev)
|
||||
static void pcnet32_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct pcnet32_private *lp = netdev_priv(dev);
|
||||
unsigned long ioaddr = dev->base_addr, flags;
|
||||
|
|
|
@ -1097,7 +1097,7 @@ static void lance_piozero(void __iomem *dest, int len)
|
|||
sbus_writeb(0, piobuf);
|
||||
}
|
||||
|
||||
static void lance_tx_timeout(struct net_device *dev)
|
||||
static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct lance_private *lp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -2152,7 +2152,7 @@ static int xgbe_change_mtu(struct net_device *netdev, int mtu)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void xgbe_tx_timeout(struct net_device *netdev)
|
||||
static void xgbe_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct xgbe_prv_data *pdata = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -575,7 +575,7 @@ static void xge_free_pending_skb(struct net_device *ndev)
|
|||
}
|
||||
}
|
||||
|
||||
static void xge_timeout(struct net_device *ndev)
|
||||
static void xge_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct xge_pdata *pdata = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -859,7 +859,7 @@ static int xgene_enet_napi(struct napi_struct *napi, const int budget)
|
|||
return processed;
|
||||
}
|
||||
|
||||
static void xgene_enet_timeout(struct net_device *ndev)
|
||||
static void xgene_enet_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct xgene_enet_pdata *pdata = netdev_priv(ndev);
|
||||
struct netdev_queue *txq;
|
||||
|
|
|
@ -91,7 +91,7 @@ static int mace_set_address(struct net_device *dev, void *addr);
|
|||
static void mace_reset(struct net_device *dev);
|
||||
static irqreturn_t mace_interrupt(int irq, void *dev_id);
|
||||
static irqreturn_t mace_dma_intr(int irq, void *dev_id);
|
||||
static void mace_tx_timeout(struct net_device *dev);
|
||||
static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void __mace_set_address(struct net_device *dev, void *addr);
|
||||
|
||||
/*
|
||||
|
@ -600,7 +600,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static void mace_tx_timeout(struct net_device *dev)
|
||||
static void mace_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct mace_data *mp = netdev_priv(dev);
|
||||
volatile struct mace *mb = mp->mace;
|
||||
|
|
|
@ -1409,7 +1409,7 @@ static void ag71xx_oom_timer_handler(struct timer_list *t)
|
|||
napi_schedule(&ag->napi);
|
||||
}
|
||||
|
||||
static void ag71xx_tx_timeout(struct net_device *ndev)
|
||||
static void ag71xx_tx_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct ag71xx *ag = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -1553,7 +1553,7 @@ static netdev_tx_t alx_start_xmit(struct sk_buff *skb,
|
|||
return alx_start_xmit_ring(skb, alx_tx_queue_mapping(alx, skb));
|
||||
}
|
||||
|
||||
static void alx_tx_timeout(struct net_device *dev)
|
||||
static void alx_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct alx_priv *alx = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ static void atl1c_del_timer(struct atl1c_adapter *adapter)
|
|||
* atl1c_tx_timeout - Respond to a Tx Hang
|
||||
* @netdev: network interface device structure
|
||||
*/
|
||||
static void atl1c_tx_timeout(struct net_device *netdev)
|
||||
static void atl1c_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct atl1c_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ static void atl1e_cancel_work(struct atl1e_adapter *adapter)
|
|||
* atl1e_tx_timeout - Respond to a Tx Hang
|
||||
* @netdev: network interface device structure
|
||||
*/
|
||||
static void atl1e_tx_timeout(struct net_device *netdev)
|
||||
static void atl1e_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct atl1e_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -1001,7 +1001,7 @@ static int atl2_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
|
|||
* atl2_tx_timeout - Respond to a Tx Hang
|
||||
* @netdev: network interface device structure
|
||||
*/
|
||||
static void atl2_tx_timeout(struct net_device *netdev)
|
||||
static void atl2_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct atl2_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ static void atlx_clear_phy_int(struct atlx_adapter *adapter)
|
|||
* atlx_tx_timeout - Respond to a Tx Hang
|
||||
* @netdev: network interface device structure
|
||||
*/
|
||||
static void atlx_tx_timeout(struct net_device *netdev)
|
||||
static void atlx_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct atlx_adapter *adapter = netdev_priv(netdev);
|
||||
/* Do the reset outside of interrupt context */
|
||||
|
|
|
@ -948,7 +948,7 @@ irq_ack:
|
|||
return IRQ_RETVAL(handled);
|
||||
}
|
||||
|
||||
static void b44_tx_timeout(struct net_device *dev)
|
||||
static void b44_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct b44 *bp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -1354,7 +1354,7 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void bcm_sysport_tx_timeout(struct net_device *dev)
|
||||
static void bcm_sysport_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
netdev_warn(dev, "transmit timeout!\n");
|
||||
|
||||
|
|
|
@ -6575,7 +6575,7 @@ bnx2_dump_state(struct bnx2 *bp)
|
|||
}
|
||||
|
||||
static void
|
||||
bnx2_tx_timeout(struct net_device *dev)
|
||||
bnx2_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct bnx2 *bp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -4970,7 +4970,7 @@ int bnx2x_set_features(struct net_device *dev, netdev_features_t features)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void bnx2x_tx_timeout(struct net_device *dev)
|
||||
void bnx2x_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct bnx2x *bp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -617,7 +617,7 @@ int bnx2x_set_features(struct net_device *dev, netdev_features_t features);
|
|||
*
|
||||
* @dev: net device
|
||||
*/
|
||||
void bnx2x_tx_timeout(struct net_device *dev);
|
||||
void bnx2x_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
/** bnx2x_get_c2s_mapping - read inner-to-outer vlan configuration
|
||||
* c2s_map should have BNX2X_MAX_PRIORITY entries.
|
||||
|
|
|
@ -9976,7 +9976,7 @@ static void bnxt_reset_task(struct bnxt *bp, bool silent)
|
|||
}
|
||||
}
|
||||
|
||||
static void bnxt_tx_timeout(struct net_device *dev)
|
||||
static void bnxt_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct bnxt *bp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -3055,7 +3055,7 @@ static void bcmgenet_dump_tx_queue(struct bcmgenet_tx_ring *ring)
|
|||
ring->cb_ptr, ring->end_ptr);
|
||||
}
|
||||
|
||||
static void bcmgenet_timeout(struct net_device *dev)
|
||||
static void bcmgenet_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct bcmgenet_priv *priv = netdev_priv(dev);
|
||||
u32 int0_enable = 0;
|
||||
|
|
|
@ -294,7 +294,7 @@ static int sbmac_set_duplex(struct sbmac_softc *s, enum sbmac_duplex duplex,
|
|||
enum sbmac_fc fc);
|
||||
|
||||
static int sbmac_open(struct net_device *dev);
|
||||
static void sbmac_tx_timeout (struct net_device *dev);
|
||||
static void sbmac_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
static void sbmac_set_rx_mode(struct net_device *dev);
|
||||
static int sbmac_mii_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
||||
static int sbmac_close(struct net_device *dev);
|
||||
|
@ -2419,7 +2419,7 @@ static void sbmac_mii_poll(struct net_device *dev)
|
|||
}
|
||||
|
||||
|
||||
static void sbmac_tx_timeout (struct net_device *dev)
|
||||
static void sbmac_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct sbmac_softc *sc = netdev_priv(dev);
|
||||
unsigned long flags;
|
||||
|
|
|
@ -7645,7 +7645,7 @@ static void tg3_poll_controller(struct net_device *dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
static void tg3_tx_timeout(struct net_device *dev)
|
||||
static void tg3_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct tg3 *tp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -1251,7 +1251,7 @@ static int xgmac_poll(struct napi_struct *napi, int budget)
|
|||
* netdev structure and arrange for the device to be reset to a sane state
|
||||
* in order to transmit a new packet.
|
||||
*/
|
||||
static void xgmac_tx_timeout(struct net_device *dev)
|
||||
static void xgmac_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct xgmac_priv *priv = netdev_priv(dev);
|
||||
schedule_work(&priv->tx_timeout_work);
|
||||
|
|
|
@ -2562,7 +2562,7 @@ lio_xmit_failed:
|
|||
/** \brief Network device Tx timeout
|
||||
* @param netdev pointer to network device
|
||||
*/
|
||||
static void liquidio_tx_timeout(struct net_device *netdev)
|
||||
static void liquidio_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct lio *lio;
|
||||
|
||||
|
|
|
@ -1628,7 +1628,7 @@ lio_xmit_failed:
|
|||
/** \brief Network device Tx timeout
|
||||
* @param netdev pointer to network device
|
||||
*/
|
||||
static void liquidio_tx_timeout(struct net_device *netdev)
|
||||
static void liquidio_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct lio *lio;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ static int lio_vf_rep_open(struct net_device *ndev);
|
|||
static int lio_vf_rep_stop(struct net_device *ndev);
|
||||
static netdev_tx_t lio_vf_rep_pkt_xmit(struct sk_buff *skb,
|
||||
struct net_device *ndev);
|
||||
static void lio_vf_rep_tx_timeout(struct net_device *netdev);
|
||||
static void lio_vf_rep_tx_timeout(struct net_device *netdev, unsigned int txqueue);
|
||||
static int lio_vf_rep_phys_port_name(struct net_device *dev,
|
||||
char *buf, size_t len);
|
||||
static void lio_vf_rep_get_stats64(struct net_device *dev,
|
||||
|
@ -172,7 +172,7 @@ lio_vf_rep_stop(struct net_device *ndev)
|
|||
}
|
||||
|
||||
static void
|
||||
lio_vf_rep_tx_timeout(struct net_device *ndev)
|
||||
lio_vf_rep_tx_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
netif_trans_update(ndev);
|
||||
|
||||
|
|
|
@ -1741,7 +1741,7 @@ static void nicvf_get_stats64(struct net_device *netdev,
|
|||
|
||||
}
|
||||
|
||||
static void nicvf_tx_timeout(struct net_device *dev)
|
||||
static void nicvf_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct nicvf *nic = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -1128,7 +1128,7 @@ net_get_stats(struct net_device *dev)
|
|||
return &dev->stats;
|
||||
}
|
||||
|
||||
static void net_timeout(struct net_device *dev)
|
||||
static void net_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
/* If we get here, some higher level has decided we are broken.
|
||||
There should really be a "kick me" function call instead. */
|
||||
|
|
|
@ -1095,7 +1095,7 @@ static void enic_set_rx_mode(struct net_device *netdev)
|
|||
}
|
||||
|
||||
/* netif_tx_lock held, BHs disabled */
|
||||
static void enic_tx_timeout(struct net_device *netdev)
|
||||
static void enic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct enic *enic = netdev_priv(netdev);
|
||||
schedule_work(&enic->tx_hang_reset);
|
||||
|
|
|
@ -1296,7 +1296,7 @@ out_drop:
|
|||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
static void gmac_tx_timeout(struct net_device *netdev)
|
||||
static void gmac_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
netdev_err(netdev, "Tx timeout\n");
|
||||
gmac_dump_dma_state(netdev);
|
||||
|
|
|
@ -964,7 +964,7 @@ dm9000_init_dm9000(struct net_device *dev)
|
|||
}
|
||||
|
||||
/* Our watchdog timed out. Called by the networking layer */
|
||||
static void dm9000_timeout(struct net_device *dev)
|
||||
static void dm9000_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct board_info *db = netdev_priv(dev);
|
||||
u8 reg_save;
|
||||
|
|
|
@ -1436,7 +1436,7 @@ static int de_close (struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void de_tx_timeout (struct net_device *dev)
|
||||
static void de_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct de_private *de = netdev_priv(dev);
|
||||
const int irq = de->pdev->irq;
|
||||
|
|
|
@ -255,7 +255,7 @@ MODULE_DEVICE_TABLE(pci, tulip_pci_tbl);
|
|||
const char tulip_media_cap[32] =
|
||||
{0,0,0,16, 3,19,16,24, 27,4,7,5, 0,20,23,20, 28,31,0,0, };
|
||||
|
||||
static void tulip_tx_timeout(struct net_device *dev);
|
||||
static void tulip_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void tulip_init_ring(struct net_device *dev);
|
||||
static void tulip_free_ring(struct net_device *dev);
|
||||
static netdev_tx_t tulip_start_xmit(struct sk_buff *skb,
|
||||
|
@ -534,7 +534,7 @@ free_ring:
|
|||
}
|
||||
|
||||
|
||||
static void tulip_tx_timeout(struct net_device *dev)
|
||||
static void tulip_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct tulip_private *tp = netdev_priv(dev);
|
||||
void __iomem *ioaddr = tp->base_addr;
|
||||
|
|
|
@ -331,7 +331,7 @@ static void netdev_timer(struct timer_list *t);
|
|||
static void init_rxtx_rings(struct net_device *dev);
|
||||
static void free_rxtx_rings(struct netdev_private *np);
|
||||
static void init_registers(struct net_device *dev);
|
||||
static void tx_timeout(struct net_device *dev);
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static int alloc_ringdesc(struct net_device *dev);
|
||||
static void free_ringdesc(struct netdev_private *np);
|
||||
static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev);
|
||||
|
@ -921,7 +921,7 @@ static void init_registers(struct net_device *dev)
|
|||
iowrite32(0, ioaddr + RxStartDemand);
|
||||
}
|
||||
|
||||
static void tx_timeout(struct net_device *dev)
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
void __iomem *ioaddr = np->base_addr;
|
||||
|
|
|
@ -66,7 +66,7 @@ static const int multicast_filter_limit = 0x40;
|
|||
|
||||
static int rio_open (struct net_device *dev);
|
||||
static void rio_timer (struct timer_list *t);
|
||||
static void rio_tx_timeout (struct net_device *dev);
|
||||
static void rio_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
static netdev_tx_t start_xmit (struct sk_buff *skb, struct net_device *dev);
|
||||
static irqreturn_t rio_interrupt (int irq, void *dev_instance);
|
||||
static void rio_free_tx (struct net_device *dev, int irq);
|
||||
|
@ -696,7 +696,7 @@ rio_timer (struct timer_list *t)
|
|||
}
|
||||
|
||||
static void
|
||||
rio_tx_timeout (struct net_device *dev)
|
||||
rio_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
void __iomem *ioaddr = np->ioaddr;
|
||||
|
|
|
@ -432,7 +432,7 @@ static int mdio_wait_link(struct net_device *dev, int wait);
|
|||
static int netdev_open(struct net_device *dev);
|
||||
static void check_duplex(struct net_device *dev);
|
||||
static void netdev_timer(struct timer_list *t);
|
||||
static void tx_timeout(struct net_device *dev);
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void init_ring(struct net_device *dev);
|
||||
static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev);
|
||||
static int reset_tx (struct net_device *dev);
|
||||
|
@ -969,7 +969,7 @@ static void netdev_timer(struct timer_list *t)
|
|||
add_timer(&np->timer);
|
||||
}
|
||||
|
||||
static void tx_timeout(struct net_device *dev)
|
||||
static void tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
void __iomem *ioaddr = np->base;
|
||||
|
|
|
@ -1417,7 +1417,7 @@ drop:
|
|||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
static void be_tx_timeout(struct net_device *netdev)
|
||||
static void be_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct be_adapter *adapter = netdev_priv(netdev);
|
||||
struct device *dev = &adapter->pdev->dev;
|
||||
|
|
|
@ -869,7 +869,7 @@ static int ethoc_change_mtu(struct net_device *dev, int new_mtu)
|
|||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static void ethoc_tx_timeout(struct net_device *dev)
|
||||
static void ethoc_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ethoc *priv = netdev_priv(dev);
|
||||
u32 pending = ethoc_read(priv, INT_SOURCE);
|
||||
|
|
|
@ -1545,7 +1545,7 @@ static int ftgmac100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int
|
|||
return phy_mii_ioctl(netdev->phydev, ifr, cmd);
|
||||
}
|
||||
|
||||
static void ftgmac100_tx_timeout(struct net_device *netdev)
|
||||
static void ftgmac100_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct ftgmac100 *priv = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -428,7 +428,7 @@ static void getlinktype(struct net_device *dev);
|
|||
static void getlinkstatus(struct net_device *dev);
|
||||
static void netdev_timer(struct timer_list *t);
|
||||
static void reset_timer(struct timer_list *t);
|
||||
static void fealnx_tx_timeout(struct net_device *dev);
|
||||
static void fealnx_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void init_ring(struct net_device *dev);
|
||||
static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev);
|
||||
static irqreturn_t intr_handler(int irq, void *dev_instance);
|
||||
|
@ -1191,7 +1191,7 @@ static void reset_timer(struct timer_list *t)
|
|||
}
|
||||
|
||||
|
||||
static void fealnx_tx_timeout(struct net_device *dev)
|
||||
static void fealnx_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
void __iomem *ioaddr = np->mem;
|
||||
|
|
|
@ -288,7 +288,7 @@ static int dpaa_stop(struct net_device *net_dev)
|
|||
return err;
|
||||
}
|
||||
|
||||
static void dpaa_tx_timeout(struct net_device *net_dev)
|
||||
static void dpaa_tx_timeout(struct net_device *net_dev, unsigned int txqueue)
|
||||
{
|
||||
struct dpaa_percpu_priv *percpu_priv;
|
||||
const struct dpaa_priv *priv;
|
||||
|
|
|
@ -1141,7 +1141,7 @@ fec_stop(struct net_device *ndev)
|
|||
|
||||
|
||||
static void
|
||||
fec_timeout(struct net_device *ndev)
|
||||
fec_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct fec_enet_private *fep = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ static int debug = -1; /* the above default */
|
|||
module_param(debug, int, 0);
|
||||
MODULE_PARM_DESC(debug, "debugging messages level");
|
||||
|
||||
static void mpc52xx_fec_tx_timeout(struct net_device *dev)
|
||||
static void mpc52xx_fec_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct mpc52xx_fec_priv *priv = netdev_priv(dev);
|
||||
unsigned long flags;
|
||||
|
|
|
@ -641,7 +641,7 @@ static void fs_timeout_work(struct work_struct *work)
|
|||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
static void fs_timeout(struct net_device *dev)
|
||||
static void fs_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct fs_enet_private *fep = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -2093,7 +2093,7 @@ static void gfar_reset_task(struct work_struct *work)
|
|||
reset_gfar(priv->ndev);
|
||||
}
|
||||
|
||||
static void gfar_timeout(struct net_device *dev)
|
||||
static void gfar_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct gfar_private *priv = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -3545,7 +3545,7 @@ static void ucc_geth_timeout_work(struct work_struct *work)
|
|||
* ucc_geth_timeout gets called when a packet has not been
|
||||
* transmitted after a set amount of time.
|
||||
*/
|
||||
static void ucc_geth_timeout(struct net_device *dev)
|
||||
static void ucc_geth_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ucc_geth_private *ugeth = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ static irqreturn_t fjn_interrupt(int irq, void *dev_id);
|
|||
static void fjn_rx(struct net_device *dev);
|
||||
static void fjn_reset(struct net_device *dev);
|
||||
static void set_rx_mode(struct net_device *dev);
|
||||
static void fjn_tx_timeout(struct net_device *dev);
|
||||
static void fjn_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
/*
|
||||
|
@ -774,7 +774,7 @@ static irqreturn_t fjn_interrupt(int dummy, void *dev_id)
|
|||
|
||||
/*====================================================================*/
|
||||
|
||||
static void fjn_tx_timeout(struct net_device *dev)
|
||||
static void fjn_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct local_info *lp = netdev_priv(dev);
|
||||
unsigned int ioaddr = dev->base_addr;
|
||||
|
|
|
@ -845,7 +845,7 @@ static void gve_turnup(struct gve_priv *priv)
|
|||
gve_set_napi_enabled(priv);
|
||||
}
|
||||
|
||||
static void gve_tx_timeout(struct net_device *dev)
|
||||
static void gve_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct gve_priv *priv = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -779,7 +779,7 @@ static int hip04_mac_stop(struct net_device *ndev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void hip04_timeout(struct net_device *ndev)
|
||||
static void hip04_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct hip04_priv *priv = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -893,7 +893,7 @@ static void hix5hd2_tx_timeout_task(struct work_struct *work)
|
|||
hix5hd2_net_open(priv->netdev);
|
||||
}
|
||||
|
||||
static void hix5hd2_net_timeout(struct net_device *dev)
|
||||
static void hix5hd2_net_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct hix5hd2_priv *priv = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -1485,7 +1485,7 @@ static int hns_nic_net_stop(struct net_device *ndev)
|
|||
|
||||
static void hns_tx_timeout_reset(struct hns_nic_priv *priv);
|
||||
#define HNS_TX_TIMEO_LIMIT (40 * HZ)
|
||||
static void hns_nic_net_timeout(struct net_device *ndev)
|
||||
static void hns_nic_net_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct hns_nic_priv *priv = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -1869,7 +1869,7 @@ static bool hns3_get_tx_timeo_queue_info(struct net_device *ndev)
|
|||
return true;
|
||||
}
|
||||
|
||||
static void hns3_nic_net_timeout(struct net_device *ndev)
|
||||
static void hns3_nic_net_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct hns3_nic_priv *priv = netdev_priv(ndev);
|
||||
struct hnae3_handle *h = priv->ae_handle;
|
||||
|
|
|
@ -766,7 +766,7 @@ static void hinic_set_rx_mode(struct net_device *netdev)
|
|||
queue_work(nic_dev->workq, &rx_mode_work->work);
|
||||
}
|
||||
|
||||
static void hinic_tx_timeout(struct net_device *netdev)
|
||||
static void hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct hinic_dev *nic_dev = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -363,7 +363,7 @@ static netdev_tx_t i596_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
|||
static irqreturn_t i596_interrupt(int irq, void *dev_id);
|
||||
static int i596_close(struct net_device *dev);
|
||||
static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd);
|
||||
static void i596_tx_timeout (struct net_device *dev);
|
||||
static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
static void print_eth(unsigned char *buf, char *str);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
|
||||
|
@ -1019,7 +1019,7 @@ err_irq_dev:
|
|||
return res;
|
||||
}
|
||||
|
||||
static void i596_tx_timeout (struct net_device *dev)
|
||||
static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct i596_private *lp = dev->ml_priv;
|
||||
int ioaddr = dev->base_addr;
|
||||
|
|
|
@ -66,7 +66,7 @@ static netdev_tx_t ether1_sendpacket(struct sk_buff *skb,
|
|||
static irqreturn_t ether1_interrupt(int irq, void *dev_id);
|
||||
static int ether1_close(struct net_device *dev);
|
||||
static void ether1_setmulticastlist(struct net_device *dev);
|
||||
static void ether1_timeout(struct net_device *dev);
|
||||
static void ether1_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -650,7 +650,7 @@ ether1_open (struct net_device *dev)
|
|||
}
|
||||
|
||||
static void
|
||||
ether1_timeout(struct net_device *dev)
|
||||
ether1_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
printk(KERN_WARNING "%s: transmit timeout, network cable problem?\n",
|
||||
dev->name);
|
||||
|
|
|
@ -351,7 +351,7 @@ static netdev_tx_t i596_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
|||
static irqreturn_t i596_interrupt(int irq, void *dev_id);
|
||||
static int i596_close(struct net_device *dev);
|
||||
static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd);
|
||||
static void i596_tx_timeout (struct net_device *dev);
|
||||
static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue);
|
||||
static void print_eth(unsigned char *buf, char *str);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static inline void ca(struct net_device *dev);
|
||||
|
@ -936,7 +936,7 @@ out_remove_rx_bufs:
|
|||
return -EAGAIN;
|
||||
}
|
||||
|
||||
static void i596_tx_timeout (struct net_device *dev)
|
||||
static void i596_tx_timeout (struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct i596_private *lp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ static netdev_tx_t sun3_82586_send_packet(struct sk_buff *,
|
|||
struct net_device *);
|
||||
static struct net_device_stats *sun3_82586_get_stats(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static void sun3_82586_timeout(struct net_device *dev);
|
||||
static void sun3_82586_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
#if 0
|
||||
static void sun3_82586_dump(struct net_device *,void *);
|
||||
#endif
|
||||
|
@ -965,7 +965,7 @@ static void startrecv586(struct net_device *dev)
|
|||
WAIT_4_SCB_CMD_RUC(); /* wait for accept cmd. (no timeout!!) */
|
||||
}
|
||||
|
||||
static void sun3_82586_timeout(struct net_device *dev)
|
||||
static void sun3_82586_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct priv *p = netdev_priv(dev);
|
||||
#ifndef NO_NOPCOMMANDS
|
||||
|
|
|
@ -2786,7 +2786,7 @@ out:
|
|||
return;
|
||||
}
|
||||
|
||||
static void ehea_tx_watchdog(struct net_device *dev)
|
||||
static void ehea_tx_watchdog(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ehea_port *port = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -776,7 +776,7 @@ static void emac_reset_work(struct work_struct *work)
|
|||
mutex_unlock(&dev->link_lock);
|
||||
}
|
||||
|
||||
static void emac_tx_timeout(struct net_device *ndev)
|
||||
static void emac_tx_timeout(struct net_device *ndev, unsigned int txqueue)
|
||||
{
|
||||
struct emac_instance *dev = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -2282,7 +2282,7 @@ err:
|
|||
return -ret;
|
||||
}
|
||||
|
||||
static void ibmvnic_tx_timeout(struct net_device *dev)
|
||||
static void ibmvnic_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
{
|
||||
struct ibmvnic_adapter *adapter = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -2316,7 +2316,7 @@ static void e100_down(struct nic *nic)
|
|||
e100_rx_clean_list(nic);
|
||||
}
|
||||
|
||||
static void e100_tx_timeout(struct net_device *netdev)
|
||||
static void e100_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct nic *nic = netdev_priv(netdev);
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr,
|
|||
int cmd);
|
||||
static void e1000_enter_82542_rst(struct e1000_adapter *adapter);
|
||||
static void e1000_leave_82542_rst(struct e1000_adapter *adapter);
|
||||
static void e1000_tx_timeout(struct net_device *dev);
|
||||
static void e1000_tx_timeout(struct net_device *dev, unsigned int txqueue);
|
||||
static void e1000_reset_task(struct work_struct *work);
|
||||
static void e1000_smartspeed(struct e1000_adapter *adapter);
|
||||
static int e1000_82547_fifo_workaround(struct e1000_adapter *adapter,
|
||||
|
@ -3488,7 +3488,7 @@ exit:
|
|||
* e1000_tx_timeout - Respond to a Tx Hang
|
||||
* @netdev: network interface device structure
|
||||
**/
|
||||
static void e1000_tx_timeout(struct net_device *netdev)
|
||||
static void e1000_tx_timeout(struct net_device *netdev, unsigned int txqueue)
|
||||
{
|
||||
struct e1000_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue