mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
treewide: replace dev->trans_start update with helper
Replace all trans_start updates with netif_trans_update helper. change was done via spatch: struct net_device *d; @@ - d->trans_start = jiffies + netif_trans_update(d) Compile tested only. Cc: user-mode-linux-devel@lists.sourceforge.net Cc: linux-xtensa@linux-xtensa.org Cc: linux1394-devel@lists.sourceforge.net Cc: linux-rdma@vger.kernel.org Cc: netdev@vger.kernel.org Cc: MPT-FusionLinux.pdl@broadcom.com Cc: linux-scsi@vger.kernel.org Cc: linux-can@vger.kernel.org Cc: linux-parisc@vger.kernel.org Cc: linux-omap@vger.kernel.org Cc: linux-hams@vger.kernel.org Cc: linux-usb@vger.kernel.org Cc: linux-wireless@vger.kernel.org Cc: linux-s390@vger.kernel.org Cc: devel@driverdev.osuosl.org Cc: b.a.t.m.a.n@lists.open-mesh.org Cc: linux-bluetooth@vger.kernel.org Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Acked-by: Mugunthan V N <mugunthanvnm@ti.com> Acked-by: Antonio Quartulli <a@unstable.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ba162f8eed
commit
860e9538a9
@ -223,7 +223,7 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
if (len == skb->len) {
|
||||
dev->stats.tx_packets++;
|
||||
dev->stats.tx_bytes += skb->len;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* this is normally done in the interrupt when tx finishes */
|
||||
@ -252,7 +252,7 @@ static void uml_net_set_multicast_list(struct net_device *dev)
|
||||
|
||||
static void uml_net_tx_timeout(struct net_device *dev)
|
||||
{
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,7 @@ static int iss_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
if (len == skb->len) {
|
||||
lp->stats.tx_packets++;
|
||||
lp->stats.tx_bytes += skb->len;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* this is normally done in the interrupt when tx finishes */
|
||||
|
@ -3969,7 +3969,7 @@ static netdev_tx_t hdlcdev_xmit(struct sk_buff *skb,
|
||||
dev_kfree_skb(skb);
|
||||
|
||||
/* save start time for transmit timeout detection */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* start hardware transmitter if necessary */
|
||||
spin_lock_irqsave(&info->lock, flags);
|
||||
@ -4032,7 +4032,7 @@ static int hdlcdev_open(struct net_device *dev)
|
||||
tty_kref_put(tty);
|
||||
|
||||
/* enable network layer transmit */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
|
||||
/* inform generic HDLC layer of current DCD status */
|
||||
|
@ -1023,7 +1023,7 @@ static int fwnet_send_packet(struct fwnet_packet_task *ptask)
|
||||
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
|
||||
dev->netdev->trans_start = jiffies;
|
||||
netif_trans_update(dev->netdev);
|
||||
out:
|
||||
if (free)
|
||||
fwnet_free_ptask(ptask);
|
||||
|
@ -682,7 +682,7 @@ tso_sq_no_longer_full:
|
||||
nes_write32(nesdev->regs+NES_WQE_ALLOC,
|
||||
(wqe_count << 24) | (1 << 23) | nesvnic->nic.qp_id);
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
@ -766,7 +766,7 @@ void ipoib_cm_send(struct net_device *dev, struct sk_buff *skb, struct ipoib_cm_
|
||||
ipoib_dma_unmap_tx(priv, tx_req);
|
||||
dev_kfree_skb_any(skb);
|
||||
} else {
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
++tx->tx_head;
|
||||
|
||||
if (++priv->tx_outstanding == ipoib_sendq_size) {
|
||||
|
@ -637,7 +637,7 @@ void ipoib_send(struct net_device *dev, struct sk_buff *skb,
|
||||
if (netif_queue_stopped(dev))
|
||||
netif_wake_queue(dev);
|
||||
} else {
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
address->last_send = priv->tx_head;
|
||||
++priv->tx_head;
|
||||
|
@ -127,7 +127,7 @@ net_send_packet(struct sk_buff *skb, struct net_device *dev)
|
||||
if (lp->in_idx >= MAX_SKB_BUFFERS)
|
||||
lp->in_idx = 0; /* wrap around */
|
||||
lp->sk_count++; /* adjust counter */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* If we just used up the very last entry in the
|
||||
* TX ring on this device, tell the queueing
|
||||
|
@ -1153,7 +1153,7 @@ static void isdn_net_tx_timeout(struct net_device *ndev)
|
||||
* ever called --KG
|
||||
*/
|
||||
}
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
netif_wake_queue(ndev);
|
||||
}
|
||||
|
||||
@ -1291,7 +1291,7 @@ isdn_net_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
}
|
||||
} else {
|
||||
/* Device is connected to an ISDN channel */
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
if (!lp->dialstate) {
|
||||
/* ISDN connection is established, try sending */
|
||||
int ret;
|
||||
|
@ -278,7 +278,7 @@ static int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb)
|
||||
case X25_IFACE_DATA:
|
||||
if (*state == WAN_CONNECTED) {
|
||||
skb_pull(skb, 1);
|
||||
cprot->net_dev->trans_start = jiffies;
|
||||
netif_trans_update(cprot->net_dev);
|
||||
ret = (cprot->dops->data_req(cprot, skb));
|
||||
/* prepare for future retransmissions */
|
||||
if (ret) skb_push(skb, 1);
|
||||
|
@ -791,7 +791,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, struct net_device *dev)
|
||||
pSimple->Address.High = 0;
|
||||
|
||||
mpt_put_msg_frame (LanCtx, mpt_dev, mf);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
dioprintk((KERN_INFO MYNAM ": %s/%s: Sending packet. FlagsLength = %08x.\n",
|
||||
IOC_AND_NETDEV_NAMES_s_s(dev),
|
||||
|
@ -861,7 +861,7 @@ static void cops_timeout(struct net_device *dev)
|
||||
}
|
||||
printk(KERN_WARNING "%s: Transmit timed out.\n", dev->name);
|
||||
cops_jumpstart(dev); /* Restart the card. */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -276,7 +276,7 @@ static netdev_tx_t mscan_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
out_8(®s->cantflg, 1 << buf_id);
|
||||
|
||||
if (!test_bit(F_TX_PROGRESS, &priv->flags))
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
list_add_tail(&priv->tx_queue[buf_id].list, &priv->tx_head);
|
||||
|
||||
@ -469,7 +469,7 @@ static irqreturn_t mscan_isr(int irq, void *dev_id)
|
||||
clear_bit(F_TX_PROGRESS, &priv->flags);
|
||||
priv->cur_pri = 0;
|
||||
} else {
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
|
||||
if (!test_bit(F_TX_WAIT_ALL, &priv->flags))
|
||||
|
@ -521,7 +521,7 @@ static void ems_usb_write_bulk_callback(struct urb *urb)
|
||||
if (urb->status)
|
||||
netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status);
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
/* transmission complete interrupt */
|
||||
netdev->stats.tx_packets++;
|
||||
@ -835,7 +835,7 @@ static netdev_tx_t ems_usb_start_xmit(struct sk_buff *skb, struct net_device *ne
|
||||
stats->tx_dropped++;
|
||||
}
|
||||
} else {
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
/* Slow down tx path */
|
||||
if (atomic_read(&dev->active_tx_urbs) >= MAX_TX_URBS ||
|
||||
|
@ -480,7 +480,7 @@ static void esd_usb2_write_bulk_callback(struct urb *urb)
|
||||
if (urb->status)
|
||||
netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status);
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
}
|
||||
|
||||
static ssize_t show_firmware(struct device *d,
|
||||
@ -820,7 +820,7 @@ static netdev_tx_t esd_usb2_start_xmit(struct sk_buff *skb,
|
||||
goto releasebuf;
|
||||
}
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
/*
|
||||
* Release our reference to this URB, the USB core will eventually free
|
||||
|
@ -274,7 +274,7 @@ static void peak_usb_write_bulk_callback(struct urb *urb)
|
||||
netdev->stats.tx_bytes += context->data_len;
|
||||
|
||||
/* prevent tx timeout */
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -373,7 +373,7 @@ static netdev_tx_t peak_usb_ndo_start_xmit(struct sk_buff *skb,
|
||||
stats->tx_dropped++;
|
||||
}
|
||||
} else {
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
/* slow down tx path */
|
||||
if (atomic_read(&dev->active_tx_urbs) >= PCAN_USB_MAX_TX_URBS)
|
||||
|
@ -1106,7 +1106,7 @@ e100_send_packet(struct sk_buff *skb, struct net_device *dev)
|
||||
|
||||
myNextTxDesc->skb = skb;
|
||||
|
||||
dev->trans_start = jiffies; /* NETIF_F_LLTX driver :( */
|
||||
netif_trans_update(dev); /* NETIF_F_LLTX driver :( */
|
||||
|
||||
e100_hardware_send_packet(np, buf, skb->len);
|
||||
|
||||
|
@ -699,7 +699,7 @@ el3_tx_timeout (struct net_device *dev)
|
||||
dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS),
|
||||
inw(ioaddr + TX_FREE));
|
||||
dev->stats.tx_errors++;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
/* Issue TX_RESET and TX_START commands. */
|
||||
outw(TxReset, ioaddr + EL3_CMD);
|
||||
outw(TxEnable, ioaddr + EL3_CMD);
|
||||
|
@ -992,7 +992,7 @@ static void corkscrew_timeout(struct net_device *dev)
|
||||
if (!(inw(ioaddr + EL3_STATUS) & CmdInProgress))
|
||||
break;
|
||||
outw(TxEnable, ioaddr + EL3_CMD);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
dev->stats.tx_dropped++;
|
||||
netif_wake_queue(dev);
|
||||
|
@ -700,7 +700,7 @@ static void el3_tx_timeout(struct net_device *dev)
|
||||
netdev_notice(dev, "Transmit timed out!\n");
|
||||
dump_status(dev);
|
||||
dev->stats.tx_errors++;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
/* Issue TX_RESET and TX_START commands. */
|
||||
tc574_wait_for_completion(dev, TxReset);
|
||||
outw(TxEnable, ioaddr + EL3_CMD);
|
||||
|
@ -534,7 +534,7 @@ static void el3_tx_timeout(struct net_device *dev)
|
||||
netdev_warn(dev, "Transmit timed out!\n");
|
||||
dump_status(dev);
|
||||
dev->stats.tx_errors++;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
/* Issue TX_RESET and TX_START commands. */
|
||||
tc589_wait_for_completion(dev, TxReset);
|
||||
outw(TxEnable, ioaddr + EL3_CMD);
|
||||
|
@ -1944,7 +1944,7 @@ static void vortex_tx_timeout(struct net_device *dev)
|
||||
}
|
||||
/* Issue Tx Enable */
|
||||
iowrite16(TxEnable, ioaddr + EL3_CMD);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1041,7 +1041,7 @@ static netdev_tx_t axnet_start_xmit(struct sk_buff *skb,
|
||||
{
|
||||
ei_local->txing = 1;
|
||||
NS8390_trigger_send(dev, send_length, output_page);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
if (output_page == ei_local->tx_start_page)
|
||||
{
|
||||
ei_local->tx1 = -1;
|
||||
@ -1270,7 +1270,7 @@ static void ei_tx_intr(struct net_device *dev)
|
||||
{
|
||||
ei_local->txing = 1;
|
||||
NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
ei_local->tx2 = -1,
|
||||
ei_local->lasttx = 2;
|
||||
}
|
||||
@ -1287,7 +1287,7 @@ static void ei_tx_intr(struct net_device *dev)
|
||||
{
|
||||
ei_local->txing = 1;
|
||||
NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
ei_local->tx1 = -1;
|
||||
ei_local->lasttx = 1;
|
||||
}
|
||||
|
@ -596,7 +596,7 @@ static void ei_tx_intr(struct net_device *dev)
|
||||
if (ei_local->tx2 > 0) {
|
||||
ei_local->txing = 1;
|
||||
NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
ei_local->tx2 = -1,
|
||||
ei_local->lasttx = 2;
|
||||
} else
|
||||
@ -609,7 +609,7 @@ static void ei_tx_intr(struct net_device *dev)
|
||||
if (ei_local->tx1 > 0) {
|
||||
ei_local->txing = 1;
|
||||
NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
ei_local->tx1 = -1;
|
||||
ei_local->lasttx = 1;
|
||||
} else
|
||||
|
@ -1129,7 +1129,7 @@ static void tx_timeout(struct net_device *dev)
|
||||
|
||||
/* Trigger an immediate transmit demand. */
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
@ -1430,7 +1430,7 @@ static void bfin_mac_timeout(struct net_device *dev)
|
||||
bfin_mac_enable(lp->phydev);
|
||||
|
||||
/* We can accept TX packets again */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
|
||||
static void bfin_mac_multicast_hash(struct net_device *dev)
|
||||
|
@ -3349,7 +3349,7 @@ static void et131x_down(struct net_device *netdev)
|
||||
struct et131x_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
/* Save the timestamp for the TX watchdog, prevent a timeout */
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
phy_stop(adapter->phydev);
|
||||
et131x_disable_txrx(netdev);
|
||||
@ -3816,7 +3816,7 @@ static netdev_tx_t et131x_tx(struct sk_buff *skb, struct net_device *netdev)
|
||||
netif_stop_queue(netdev);
|
||||
|
||||
/* Save the timestamp for the TX timeout watchdog */
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
/* TCB is not available */
|
||||
if (tx_ring->used >= NUM_TCB)
|
||||
|
@ -428,7 +428,7 @@ static void emac_timeout(struct net_device *dev)
|
||||
emac_reset(db);
|
||||
emac_init_device(dev);
|
||||
/* We can accept TX packets again */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_wake_queue(dev);
|
||||
|
||||
/* Restore previous register address */
|
||||
@ -468,7 +468,7 @@ static int emac_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
db->membase + EMAC_TX_CTL0_REG);
|
||||
|
||||
/* save the time stamp */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
} else if (channel == 1) {
|
||||
/* set TX len */
|
||||
writel(skb->len, db->membase + EMAC_TX_PL1_REG);
|
||||
@ -477,7 +477,7 @@ static int emac_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
db->membase + EMAC_TX_CTL1_REG);
|
||||
|
||||
/* save the time stamp */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
|
||||
if ((db->tx_fifo_stat & 3) == 3) {
|
||||
|
@ -260,7 +260,7 @@ static int lance_reset(struct net_device *dev)
|
||||
|
||||
load_csrs(lp);
|
||||
lance_init_ring(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
status = init_restart_lance(lp);
|
||||
#ifdef DEBUG_DRIVER
|
||||
printk("Lance restart=%d\n", status);
|
||||
@ -530,7 +530,7 @@ void lance_tx_timeout(struct net_device *dev)
|
||||
{
|
||||
printk("lance_tx_timeout\n");
|
||||
lance_reset(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(lance_tx_timeout);
|
||||
|
@ -512,7 +512,7 @@ static inline int lance_reset(struct net_device *dev)
|
||||
load_csrs(lp);
|
||||
|
||||
lance_init_ring(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_start_queue(dev);
|
||||
|
||||
status = init_restart_lance(lp);
|
||||
|
@ -764,7 +764,7 @@ static void lance_tx_timeout (struct net_device *dev)
|
||||
/* lance_restart, essentially */
|
||||
lance_init_ring(dev);
|
||||
REGA( CSR0 ) = CSR0_INEA | CSR0_INIT | CSR0_STRT;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -1074,7 +1074,7 @@ static void au1000_tx_timeout(struct net_device *dev)
|
||||
netdev_err(dev, "au1000_tx_timeout: dev=%p\n", dev);
|
||||
au1000_reset_mac(dev);
|
||||
au1000_init(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -877,7 +877,7 @@ static inline int lance_reset(struct net_device *dev)
|
||||
|
||||
lance_init_ring(dev);
|
||||
load_csrs(lp);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
status = init_restart_lance(lp);
|
||||
return status;
|
||||
}
|
||||
|
@ -943,7 +943,7 @@ static void lance_tx_timeout (struct net_device *dev)
|
||||
#endif
|
||||
lance_restart (dev, 0x0043, 1);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue (dev);
|
||||
}
|
||||
|
||||
|
@ -782,7 +782,7 @@ static void ni65_stop_start(struct net_device *dev,struct priv *p)
|
||||
if(!p->lock)
|
||||
if (p->tmdnum || !p->xmit_queued)
|
||||
netif_wake_queue(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
else
|
||||
writedatareg(CSR0_STRT | csr0);
|
||||
@ -1148,7 +1148,7 @@ static void ni65_timeout(struct net_device *dev)
|
||||
printk("%02x ",p->tmdhead[i].u.s.status);
|
||||
printk("\n");
|
||||
ni65_lance_reinit(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -851,7 +851,7 @@ static void mace_tx_timeout(struct net_device *dev)
|
||||
#else /* #if RESET_ON_TIMEOUT */
|
||||
pr_cont("NOT resetting card\n");
|
||||
#endif /* #if RESET_ON_TIMEOUT */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -448,7 +448,7 @@ static void pcnet32_netif_stop(struct net_device *dev)
|
||||
{
|
||||
struct pcnet32_private *lp = netdev_priv(dev);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
napi_disable(&lp->napi);
|
||||
netif_tx_disable(dev);
|
||||
}
|
||||
@ -2426,7 +2426,7 @@ static void pcnet32_tx_timeout(struct net_device *dev)
|
||||
}
|
||||
pcnet32_restart(dev, CSR0_NORMAL);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
|
||||
spin_unlock_irqrestore(&lp->lock, flags);
|
||||
|
@ -997,7 +997,7 @@ static int lance_reset(struct net_device *dev)
|
||||
}
|
||||
lp->init_ring(dev);
|
||||
load_csrs(lp);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
status = init_restart_lance(lp);
|
||||
return status;
|
||||
}
|
||||
|
@ -745,7 +745,7 @@ static netdev_features_t alx_fix_features(struct net_device *netdev,
|
||||
|
||||
static void alx_netif_stop(struct alx_priv *alx)
|
||||
{
|
||||
alx->dev->trans_start = jiffies;
|
||||
netif_trans_update(alx->dev);
|
||||
if (netif_carrier_ok(alx->dev)) {
|
||||
netif_carrier_off(alx->dev);
|
||||
netif_tx_disable(alx->dev);
|
||||
|
@ -1117,7 +1117,7 @@ static void bcm_sysport_tx_timeout(struct net_device *dev)
|
||||
{
|
||||
netdev_warn(dev, "transmit timeout!\n");
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
dev->stats.tx_errors++;
|
||||
|
||||
netif_tx_wake_all_queues(dev);
|
||||
|
@ -3059,7 +3059,7 @@ static void bcmgenet_timeout(struct net_device *dev)
|
||||
bcmgenet_intrl2_0_writel(priv, int0_enable, INTRL2_CPU_MASK_CLEAR);
|
||||
bcmgenet_intrl2_1_writel(priv, int1_enable, INTRL2_CPU_MASK_CLEAR);
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
dev->stats.tx_errors++;
|
||||
|
||||
|
@ -2462,7 +2462,7 @@ static void sbmac_tx_timeout (struct net_device *dev)
|
||||
spin_lock_irqsave(&sc->sbm_lock, flags);
|
||||
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
|
||||
spin_unlock_irqrestore(&sc->sbm_lock, flags);
|
||||
|
@ -7383,7 +7383,7 @@ static void tg3_napi_fini(struct tg3 *tp)
|
||||
|
||||
static inline void tg3_netif_stop(struct tg3 *tp)
|
||||
{
|
||||
tp->dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(tp->dev); /* prevent tx timeout */
|
||||
tg3_napi_disable(tp);
|
||||
netif_carrier_off(tp->dev);
|
||||
netif_tx_disable(tp->dev);
|
||||
|
@ -2899,7 +2899,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
|
||||
if (status == IQ_SEND_STOP)
|
||||
stop_q(lio->netdev, q_idx);
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
stats->tx_done++;
|
||||
stats->tx_tot_bytes += skb->len;
|
||||
@ -2928,7 +2928,7 @@ static void liquidio_tx_timeout(struct net_device *netdev)
|
||||
netif_info(lio, tx_err, lio->netdev,
|
||||
"Transmit timeout tx_dropped:%ld, waking up queues now!!\n",
|
||||
netdev->stats.tx_dropped);
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
txqs_wake(netdev);
|
||||
}
|
||||
|
||||
|
@ -1320,7 +1320,7 @@ static int octeon_mgmt_xmit(struct sk_buff *skb, struct net_device *netdev)
|
||||
/* Ring the bell. */
|
||||
cvmx_write_csr(p->mix + MIX_ORING2, 1);
|
||||
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
rv = NETDEV_TX_OK;
|
||||
out:
|
||||
octeon_mgmt_update_tx_stats(netdev);
|
||||
|
@ -1442,7 +1442,7 @@ static void nicvf_reset_task(struct work_struct *work)
|
||||
|
||||
nicvf_stop(nic->netdev);
|
||||
nicvf_open(nic->netdev);
|
||||
nic->netdev->trans_start = jiffies;
|
||||
netif_trans_update(nic->netdev);
|
||||
}
|
||||
|
||||
static int nicvf_config_loopback(struct nicvf *nic,
|
||||
|
@ -1448,7 +1448,7 @@ int t4vf_eth_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
* the new TX descriptors and return success.
|
||||
*/
|
||||
txq_advance(&txq->q, ndesc);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
ring_tx_db(adapter, &txq->q, ndesc);
|
||||
return NETDEV_TX_OK;
|
||||
|
||||
|
@ -966,7 +966,7 @@ dm9000_init_dm9000(struct net_device *dev)
|
||||
/* Init Driver variable */
|
||||
db->tx_pkt_cnt = 0;
|
||||
db->queue_pkt_len = 0;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
|
||||
/* Our watchdog timed out. Called by the networking layer */
|
||||
@ -985,7 +985,7 @@ static void dm9000_timeout(struct net_device *dev)
|
||||
dm9000_init_dm9000(dev);
|
||||
dm9000_unmask_interrupts(db);
|
||||
/* We can accept TX packets again */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
|
||||
/* Restore previous register address */
|
||||
|
@ -1336,7 +1336,7 @@ de4x5_open(struct net_device *dev)
|
||||
}
|
||||
|
||||
lp->interrupt = UNMASK_INTERRUPTS;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
|
||||
START_DE4X5;
|
||||
|
||||
@ -1935,7 +1935,7 @@ set_multicast_list(struct net_device *dev)
|
||||
|
||||
lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;
|
||||
outl(POLL_DEMAND, DE4X5_TPD); /* Start the TX */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -725,7 +725,7 @@ static netdev_tx_t dmfe_start_xmit(struct sk_buff *skb,
|
||||
txptr->tdes0 = cpu_to_le32(0x80000000); /* Set owner bit */
|
||||
db->tx_packet_cnt++; /* Ready to send */
|
||||
dw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
dev->trans_start = jiffies; /* saved time stamp */
|
||||
netif_trans_update(dev); /* saved time stamp */
|
||||
} else {
|
||||
db->tx_queue_cnt++; /* queue TX packet */
|
||||
dw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
@ -931,7 +931,7 @@ static void dmfe_free_tx_pkt(struct net_device *dev, struct dmfe_board_info *db)
|
||||
db->tx_packet_cnt++; /* Ready to send */
|
||||
db->tx_queue_cnt--;
|
||||
dw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
dev->trans_start = jiffies; /* saved time stamp */
|
||||
netif_trans_update(dev); /* saved time stamp */
|
||||
}
|
||||
|
||||
/* Resource available check */
|
||||
@ -1542,7 +1542,7 @@ static void send_filter_frame(struct net_device *dev)
|
||||
update_cr6(db->cr6_data | 0x2000, ioaddr);
|
||||
dw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
update_cr6(db->cr6_data, ioaddr);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
} else
|
||||
db->tx_queue_cnt++; /* Put in TX queue */
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ void pnic_do_nway(struct net_device *dev)
|
||||
tp->csr6 = new_csr6;
|
||||
/* Restart Tx */
|
||||
tulip_restart_rxtx(tp);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -70,7 +70,7 @@ void pnic_lnk_change(struct net_device *dev, int csr5)
|
||||
iowrite32(tp->csr6, ioaddr + CSR6);
|
||||
iowrite32(0x30, ioaddr + CSR12);
|
||||
iowrite32(0x0201F078, ioaddr + 0xB8); /* Turn on autonegotiation. */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
} else if (ioread32(ioaddr + CSR5) & TPLnkPass) {
|
||||
if (tulip_media_cap[dev->if_port] & MediaIsMII) {
|
||||
@ -147,7 +147,7 @@ void pnic_timer(unsigned long data)
|
||||
tp->csr6 = new_csr6;
|
||||
/* Restart Tx */
|
||||
tulip_restart_rxtx(tp);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
if (tulip_debug > 1)
|
||||
dev_info(&dev->dev,
|
||||
"Changing PNIC configuration to %s %s-duplex, CSR6 %08x\n",
|
||||
|
@ -605,7 +605,7 @@ static void tulip_tx_timeout(struct net_device *dev)
|
||||
|
||||
out_unlock:
|
||||
spin_unlock_irqrestore (&tp->lock, flags);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue (dev);
|
||||
}
|
||||
|
||||
|
@ -636,7 +636,7 @@ static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb,
|
||||
txptr->tdes0 = cpu_to_le32(0x80000000); /* Set owner bit */
|
||||
db->tx_packet_cnt++; /* Ready to send */
|
||||
uw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
dev->trans_start = jiffies; /* saved time stamp */
|
||||
netif_trans_update(dev); /* saved time stamp */
|
||||
}
|
||||
|
||||
/* Tx resource check */
|
||||
@ -1431,7 +1431,7 @@ static void send_filter_frame(struct net_device *dev, int mc_cnt)
|
||||
update_cr6(db->cr6_data | 0x2000, ioaddr);
|
||||
uw32(DCR1, 0x1); /* Issue Tx polling */
|
||||
update_cr6(db->cr6_data, ioaddr);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
} else
|
||||
netdev_err(dev, "No Tx resource - Send_filter_frame!\n");
|
||||
}
|
||||
|
@ -966,7 +966,7 @@ static void tx_timeout(struct net_device *dev)
|
||||
enable_irq(irq);
|
||||
|
||||
netif_wake_queue(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
np->stats.tx_errors++;
|
||||
}
|
||||
|
||||
|
@ -706,7 +706,7 @@ rio_tx_timeout (struct net_device *dev)
|
||||
dev->name, dr32(TxStatus));
|
||||
rio_free_tx(dev, 0);
|
||||
dev->if_port = 0;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
|
||||
static netdev_tx_t
|
||||
|
@ -1011,7 +1011,7 @@ static void tx_timeout(struct net_device *dev)
|
||||
|
||||
dev->if_port = 0;
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) {
|
||||
netif_wake_queue(dev);
|
||||
|
@ -1227,7 +1227,7 @@ static void fealnx_tx_timeout(struct net_device *dev)
|
||||
|
||||
spin_unlock_irqrestore(&np->lock, flags);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
netif_wake_queue(dev); /* or .._start_.. ?? */
|
||||
}
|
||||
|
@ -2076,7 +2076,7 @@ void gfar_start(struct gfar_private *priv)
|
||||
|
||||
gfar_ints_enable(priv);
|
||||
|
||||
priv->ndev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(priv->ndev); /* prevent tx timeout */
|
||||
}
|
||||
|
||||
static void free_grp_irqs(struct gfar_priv_grp *grp)
|
||||
|
@ -746,7 +746,7 @@ static irqreturn_t fjn_interrupt(int dummy, void *dev_id)
|
||||
lp->sent = lp->tx_queue ;
|
||||
lp->tx_queue = 0;
|
||||
lp->tx_queue_len = 0;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
} else {
|
||||
lp->tx_started = 0;
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ static int hix5hd2_net_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
pos = dma_ring_incr(pos, TX_DESC_NUM);
|
||||
writel_relaxed(dma_byte(pos), priv->base + TX_BQ_WR_ADDR);
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
dev->stats.tx_packets++;
|
||||
dev->stats.tx_bytes += skb->len;
|
||||
netdev_sent_queue(dev, skb->len);
|
||||
|
@ -1275,7 +1275,7 @@ void hns_nic_net_reinit(struct net_device *netdev)
|
||||
{
|
||||
struct hns_nic_priv *priv = netdev_priv(netdev);
|
||||
|
||||
priv->netdev->trans_start = jiffies;
|
||||
netif_trans_update(priv->netdev);
|
||||
while (test_and_set_bit(NIC_STATE_REINITING, &priv->state))
|
||||
usleep_range(1000, 2000);
|
||||
|
||||
@ -1376,7 +1376,7 @@ static netdev_tx_t hns_nic_net_xmit(struct sk_buff *skb,
|
||||
ret = hns_nic_net_xmit_hw(ndev, skb,
|
||||
&tx_ring_data(priv, skb->queue_mapping));
|
||||
if (ret == NETDEV_TX_OK) {
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
ndev->stats.tx_bytes += skb->len;
|
||||
ndev->stats.tx_packets++;
|
||||
}
|
||||
@ -1648,7 +1648,7 @@ static void hns_nic_reset_subtask(struct hns_nic_priv *priv)
|
||||
|
||||
rtnl_lock();
|
||||
/* put off any impending NetWatchDogTimeout */
|
||||
priv->netdev->trans_start = jiffies;
|
||||
netif_trans_update(priv->netdev);
|
||||
|
||||
if (type == HNAE_PORT_DEBUG) {
|
||||
hns_nic_net_reinit(priv->netdev);
|
||||
|
@ -1102,7 +1102,7 @@ static int hp100_open(struct net_device *dev)
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_start_queue(dev);
|
||||
|
||||
lp->lan_type = hp100_sense_lan(dev);
|
||||
|
@ -1042,7 +1042,7 @@ static void i596_tx_timeout (struct net_device *dev)
|
||||
lp->last_restart = dev->stats.tx_packets;
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue (dev);
|
||||
}
|
||||
|
||||
|
@ -960,7 +960,7 @@ static void i596_tx_timeout (struct net_device *dev)
|
||||
lp->last_restart = dev->stats.tx_packets;
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue (dev);
|
||||
}
|
||||
|
||||
|
@ -983,7 +983,7 @@ static void sun3_82586_timeout(struct net_device *dev)
|
||||
p->scb->cmd_cuc = CUC_START;
|
||||
sun3_attn586();
|
||||
WAIT_4_SCB_CMD();
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@ -996,7 +996,7 @@ static void sun3_82586_timeout(struct net_device *dev)
|
||||
sun3_82586_close(dev);
|
||||
sun3_82586_open(dev);
|
||||
}
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
|
@ -301,7 +301,7 @@ static inline void emac_netif_stop(struct emac_instance *dev)
|
||||
dev->no_mcast = 1;
|
||||
netif_addr_unlock(dev->ndev);
|
||||
netif_tx_unlock_bh(dev->ndev);
|
||||
dev->ndev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev->ndev); /* prevent tx timeout */
|
||||
mal_poll_disable(dev->mal, &dev->commac);
|
||||
netif_tx_disable(dev->ndev);
|
||||
}
|
||||
@ -1377,7 +1377,7 @@ static inline int emac_xmit_finish(struct emac_instance *dev, int len)
|
||||
DBG2(dev, "stopped TX queue" NL);
|
||||
}
|
||||
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
++dev->stats.tx_packets;
|
||||
dev->stats.tx_bytes += len;
|
||||
|
||||
|
@ -145,7 +145,7 @@ static void fm10k_reinit(struct fm10k_intfc *interface)
|
||||
WARN_ON(in_interrupt());
|
||||
|
||||
/* put off any impending NetWatchDogTimeout */
|
||||
netdev->trans_start = jiffies;
|
||||
netif_trans_update(netdev);
|
||||
|
||||
while (test_and_set_bit(__FM10K_RESETTING, &interface->state))
|
||||
usleep_range(1000, 2000);
|
||||
|
@ -5287,7 +5287,7 @@ void ixgbe_reinit_locked(struct ixgbe_adapter *adapter)
|
||||
{
|
||||
WARN_ON(in_interrupt());
|
||||
/* put off any impending NetWatchDogTimeout */
|
||||
adapter->netdev->trans_start = jiffies;
|
||||
netif_trans_update(adapter->netdev);
|
||||
|
||||
while (test_and_set_bit(__IXGBE_RESETTING, &adapter->state))
|
||||
usleep_range(1000, 2000);
|
||||
|
@ -152,7 +152,7 @@ static inline void korina_abort_dma(struct net_device *dev,
|
||||
writel(0x10, &ch->dmac);
|
||||
|
||||
while (!(readl(&ch->dmas) & DMA_STAT_HALT))
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
writel(0, &ch->dmas);
|
||||
}
|
||||
@ -283,7 +283,7 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
|
||||
}
|
||||
dma_cache_wback((u32) td, sizeof(*td));
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
spin_unlock_irqrestore(&lp->lock, flags);
|
||||
|
||||
return NETDEV_TX_OK;
|
||||
@ -622,7 +622,7 @@ korina_tx_dma_interrupt(int irq, void *dev_id)
|
||||
&(lp->tx_dma_regs->dmandptr));
|
||||
lp->tx_chain_status = desc_empty;
|
||||
lp->tx_chain_head = lp->tx_chain_tail;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
if (dmas & DMA_STAT_ERR)
|
||||
printk(KERN_ERR "%s: DMA error\n", dev->name);
|
||||
@ -811,7 +811,7 @@ static int korina_init(struct net_device *dev)
|
||||
/* reset ethernet logic */
|
||||
writel(0, &lp->eth_regs->ethintfc);
|
||||
while ((readl(&lp->eth_regs->ethintfc) & ETH_INT_FC_RIP))
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* Enable Ethernet Interface */
|
||||
writel(ETH_INT_FC_EN, &lp->eth_regs->ethintfc);
|
||||
|
@ -519,7 +519,7 @@ ltq_etop_tx(struct sk_buff *skb, struct net_device *dev)
|
||||
byte_offset = CPHYSADDR(skb->data) % 16;
|
||||
ch->skb[ch->dma.desc] = skb;
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
spin_lock_irqsave(&priv->lock, flags);
|
||||
desc->addr = ((unsigned int) dma_map_single(NULL, skb->data, len,
|
||||
@ -657,7 +657,7 @@ ltq_etop_tx_timeout(struct net_device *dev)
|
||||
err = ltq_etop_hw_init(dev);
|
||||
if (err)
|
||||
goto err_hw;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_wake_queue(dev);
|
||||
return;
|
||||
|
||||
|
@ -1297,7 +1297,7 @@ static int pxa168_eth_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
|
||||
stats->tx_bytes += length;
|
||||
stats->tx_packets++;
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
if (pep->tx_ring_size - pep->tx_desc_count <= 1) {
|
||||
/* We handled the current skb, but now we are out of space.*/
|
||||
netif_stop_queue(dev);
|
||||
|
@ -2418,7 +2418,7 @@ static int sky2_change_mtu(struct net_device *dev, int new_mtu)
|
||||
sky2_write32(hw, B0_IMSK, 0);
|
||||
sky2_read32(hw, B0_IMSK);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
napi_disable(&hw->napi);
|
||||
netif_tx_disable(dev);
|
||||
|
||||
|
@ -4790,7 +4790,7 @@ static void transmit_cleanup(struct dev_info *hw_priv, int normal)
|
||||
|
||||
/* Notify the network subsystem that the packet has been sent. */
|
||||
if (dev)
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -4965,7 +4965,7 @@ static void netdev_tx_timeout(struct net_device *dev)
|
||||
hw_ena_intr(hw);
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -874,7 +874,7 @@ static netdev_tx_t encx24j600_tx(struct sk_buff *skb, struct net_device *dev)
|
||||
netif_stop_queue(dev);
|
||||
|
||||
/* save the timestamp */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* Remember the skb for deferred processing */
|
||||
priv->tx_skb = skb;
|
||||
|
@ -376,7 +376,7 @@ static int moxart_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
|
||||
priv->tx_head = TX_NEXT(tx_head);
|
||||
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
ret = NETDEV_TX_OK;
|
||||
out_unlock:
|
||||
spin_unlock_irq(&priv->txlock);
|
||||
|
@ -1904,7 +1904,7 @@ static void ns_tx_timeout(struct net_device *dev)
|
||||
spin_unlock_irq(&np->lock);
|
||||
enable_irq(irq);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ static void sonic_tx_timeout(struct net_device *dev)
|
||||
/* Try to restart the adaptor. */
|
||||
sonic_init(dev);
|
||||
lp->stats.tx_errors++;
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -476,7 +476,7 @@ static void w90p910_reset_mac(struct net_device *dev)
|
||||
|
||||
w90p910_init_desc(dev);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
ether->cur_tx = 0x0;
|
||||
ether->finish_tx = 0x0;
|
||||
ether->cur_rx = 0x0;
|
||||
@ -490,7 +490,7 @@ static void w90p910_reset_mac(struct net_device *dev)
|
||||
w90p910_trigger_tx(dev);
|
||||
w90p910_trigger_rx(dev);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
|
||||
if (netif_queue_stopped(dev))
|
||||
netif_wake_queue(dev);
|
||||
|
@ -1144,7 +1144,7 @@ static void hamachi_tx_timeout(struct net_device *dev)
|
||||
hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing);
|
||||
|
||||
/* Trigger an immediate transmit demand. */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
|
||||
/* Restart the chip's Tx/Rx processes . */
|
||||
|
@ -714,7 +714,7 @@ static void yellowfin_tx_timeout(struct net_device *dev)
|
||||
if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE)
|
||||
netif_wake_queue (dev); /* Typical path */
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
}
|
||||
|
||||
|
@ -2285,7 +2285,7 @@ static void netxen_tx_timeout_task(struct work_struct *work)
|
||||
goto request_reset;
|
||||
}
|
||||
}
|
||||
adapter->netdev->trans_start = jiffies;
|
||||
netif_trans_update(adapter->netdev);
|
||||
rtnl_unlock();
|
||||
return;
|
||||
|
||||
|
@ -719,7 +719,7 @@ qcaspi_netdev_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
qca->stats.ring_full++;
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
if (qca->spi_thread &&
|
||||
qca->spi_thread->state != TASK_RUNNING)
|
||||
|
@ -544,7 +544,7 @@ static void tx_timeout(struct net_device *dev)
|
||||
dev->stats.tx_errors++;
|
||||
/* Try to restart the adapter. */
|
||||
hardware_init(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
dev->stats.tx_errors++;
|
||||
}
|
||||
|
@ -572,7 +572,7 @@ static inline int sgiseeq_reset(struct net_device *dev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
|
||||
return 0;
|
||||
@ -648,7 +648,7 @@ static void timeout(struct net_device *dev)
|
||||
printk(KERN_NOTICE "%s: transmit timed out, resetting\n", dev->name);
|
||||
sgiseeq_reset(dev);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -708,7 +708,7 @@ static int meth_tx(struct sk_buff *skb, struct net_device *dev)
|
||||
mace->eth.dma_ctrl = priv->dma_ctrl;
|
||||
|
||||
meth_add_to_tx_ring(priv, skb);
|
||||
dev->trans_start = jiffies; /* save the timestamp */
|
||||
netif_trans_update(dev); /* save the timestamp */
|
||||
|
||||
/* If TX ring is full, tell the upper layer to stop sending packets */
|
||||
if (meth_tx_full(dev)) {
|
||||
@ -756,7 +756,7 @@ static void meth_tx_timeout(struct net_device *dev)
|
||||
/* Enable interrupt */
|
||||
spin_unlock_irqrestore(&priv->meth_lock, flags);
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -1575,7 +1575,7 @@ static void sis900_tx_timeout(struct net_device *net_dev)
|
||||
|
||||
spin_unlock_irqrestore(&sis_priv->lock, flags);
|
||||
|
||||
net_dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(net_dev); /* prevent tx timeout */
|
||||
|
||||
/* load Transmit Descriptor Register */
|
||||
sw32(txdp, sis_priv->tx_ring_dma);
|
||||
|
@ -889,7 +889,7 @@ static void epic_tx_timeout(struct net_device *dev)
|
||||
ew32(COMMAND, TxQueued);
|
||||
}
|
||||
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
dev->stats.tx_errors++;
|
||||
if (!ep->tx_full)
|
||||
netif_wake_queue(dev);
|
||||
|
@ -499,7 +499,7 @@ static void smc911x_hardware_send_pkt(struct net_device *dev)
|
||||
/* DMA complete IRQ will free buffer and set jiffies */
|
||||
#else
|
||||
SMC_PUSH_DATA(lp, buf, len);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
dev_kfree_skb_irq(skb);
|
||||
#endif
|
||||
if (!lp->tx_throttle) {
|
||||
@ -1189,7 +1189,7 @@ smc911x_tx_dma_irq(void *data)
|
||||
DBG(SMC_DEBUG_TX | SMC_DEBUG_DMA, dev, "TX DMA irq handler\n");
|
||||
BUG_ON(skb == NULL);
|
||||
dma_unmap_single(NULL, tx_dmabuf, tx_dmalen, DMA_TO_DEVICE);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
dev_kfree_skb_irq(skb);
|
||||
lp->current_tx_skb = NULL;
|
||||
if (lp->pending_tx_skb != NULL)
|
||||
@ -1283,7 +1283,7 @@ static void smc911x_timeout(struct net_device *dev)
|
||||
schedule_work(&lp->phy_configure);
|
||||
|
||||
/* We can accept TX packets again */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -663,7 +663,7 @@ static void smc_hardware_send_packet( struct net_device * dev )
|
||||
lp->saved_skb = NULL;
|
||||
dev_kfree_skb_any (skb);
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* we can send another packet */
|
||||
netif_wake_queue(dev);
|
||||
@ -1104,7 +1104,7 @@ static void smc_timeout(struct net_device *dev)
|
||||
/* "kick" the adaptor */
|
||||
smc_reset( dev->base_addr );
|
||||
smc_enable( dev->base_addr );
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
/* clear anything saved */
|
||||
((struct smc_local *)netdev_priv(dev))->saved_skb = NULL;
|
||||
netif_wake_queue(dev);
|
||||
|
@ -1172,7 +1172,7 @@ static void smc_hardware_send_packet(struct net_device * dev)
|
||||
|
||||
smc->saved_skb = NULL;
|
||||
dev_kfree_skb_irq(skb);
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
netif_start_queue(dev);
|
||||
}
|
||||
|
||||
@ -1187,7 +1187,7 @@ static void smc_tx_timeout(struct net_device *dev)
|
||||
inw(ioaddr)&0xff, inw(ioaddr + 2));
|
||||
dev->stats.tx_errors++;
|
||||
smc_reset(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
smc->saved_skb = NULL;
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
@ -619,7 +619,7 @@ static void smc_hardware_send_pkt(unsigned long data)
|
||||
SMC_SET_MMU_CMD(lp, MC_ENQUEUE);
|
||||
smc_special_unlock(&lp->lock, flags);
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
dev->stats.tx_packets++;
|
||||
dev->stats.tx_bytes += len;
|
||||
|
||||
@ -1364,7 +1364,7 @@ static void smc_timeout(struct net_device *dev)
|
||||
schedule_work(&lp->phy_configure);
|
||||
|
||||
/* We can accept TX packets again */
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
}
|
||||
|
||||
|
@ -6431,7 +6431,7 @@ static int niu_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
|
||||
static void niu_netif_stop(struct niu *np)
|
||||
{
|
||||
np->dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(np->dev); /* prevent tx timeout */
|
||||
|
||||
niu_disable_napi(np);
|
||||
|
||||
|
@ -226,7 +226,7 @@ static void gem_put_cell(struct gem *gp)
|
||||
|
||||
static inline void gem_netif_stop(struct gem *gp)
|
||||
{
|
||||
gp->dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(gp->dev); /* prevent tx timeout */
|
||||
napi_disable(&gp->napi);
|
||||
netif_tx_disable(gp->dev);
|
||||
}
|
||||
|
@ -949,7 +949,7 @@ static void dwceqos_adjust_link(struct net_device *ndev)
|
||||
|
||||
if (status_change) {
|
||||
if (phydev->link) {
|
||||
lp->ndev->trans_start = jiffies;
|
||||
netif_trans_update(lp->ndev);
|
||||
dwceqos_link_up(lp);
|
||||
} else {
|
||||
dwceqos_link_down(lp);
|
||||
@ -2203,7 +2203,7 @@ static int dwceqos_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
netdev_sent_queue(ndev, skb->len);
|
||||
spin_unlock_bh(&lp->tx_lock);
|
||||
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
return 0;
|
||||
|
||||
tx_error:
|
||||
|
@ -1701,7 +1701,7 @@ static netdev_tx_t bdx_tx_transmit(struct sk_buff *skb,
|
||||
|
||||
#endif
|
||||
#ifdef BDX_LLTX
|
||||
ndev->trans_start = jiffies; /* NETIF_F_LLTX driver :( */
|
||||
netif_trans_update(ndev); /* NETIF_F_LLTX driver :( */
|
||||
#endif
|
||||
ndev->stats.tx_packets++;
|
||||
ndev->stats.tx_bytes += skb->len;
|
||||
|
@ -1389,7 +1389,7 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb,
|
||||
struct cpsw_priv *priv = netdev_priv(ndev);
|
||||
int ret;
|
||||
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
|
||||
if (skb_padto(skb, CPSW_MIN_PACKET_SIZE)) {
|
||||
cpsw_err(priv, tx_err, "packet pad failed\n");
|
||||
|
@ -1272,7 +1272,7 @@ static int netcp_ndo_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
if (ret)
|
||||
goto drop;
|
||||
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
|
||||
/* Check Tx pool count & stop subqueue if needed */
|
||||
desc_count = knav_pool_count(netcp->tx_pool);
|
||||
@ -1788,7 +1788,7 @@ static void netcp_ndo_tx_timeout(struct net_device *ndev)
|
||||
|
||||
dev_err(netcp->ndev_dev, "transmit timed out tx descs(%d)\n", descs);
|
||||
netcp_process_tx_compl_packets(netcp, netcp->tx_pool_size);
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
netif_tx_wake_all_queues(ndev);
|
||||
}
|
||||
|
||||
|
@ -1007,7 +1007,7 @@ static void tlan_tx_timeout(struct net_device *dev)
|
||||
tlan_reset_lists(dev);
|
||||
tlan_read_and_clear_stats(dev, TLAN_IGNORE);
|
||||
tlan_reset_adapter(dev);
|
||||
dev->trans_start = jiffies; /* prevent tx timeout */
|
||||
netif_trans_update(dev); /* prevent tx timeout */
|
||||
netif_wake_queue(dev);
|
||||
|
||||
}
|
||||
|
@ -1883,7 +1883,7 @@ static int tile_net_tx(struct sk_buff *skb, struct net_device *dev)
|
||||
|
||||
|
||||
/* Save the timestamp. */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
|
||||
#ifdef TILE_NET_PARANOIA
|
||||
|
@ -705,7 +705,7 @@ spider_net_prepare_tx_descr(struct spider_net_card *card,
|
||||
wmb();
|
||||
descr->prev->hwdescr->next_descr_addr = descr->bus_addr;
|
||||
|
||||
card->netdev->trans_start = jiffies; /* set netdev watchdog timer */
|
||||
netif_trans_update(card->netdev); /* set netdev watchdog timer */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user