aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index ae3c2099a04b..586b71f0358c 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1674,6 +1674,12 @@ static inline void __netif_tx_unlock_bh(struct netdev_queue *txq)
1674 spin_unlock_bh(&txq->_xmit_lock); 1674 spin_unlock_bh(&txq->_xmit_lock);
1675} 1675}
1676 1676
1677static inline void txq_trans_update(struct netdev_queue *txq)
1678{
1679 if (txq->xmit_lock_owner != -1)
1680 txq->trans_start = jiffies;
1681}
1682
1677/** 1683/**
1678 * netif_tx_lock - grab network device transmit lock 1684 * netif_tx_lock - grab network device transmit lock
1679 * @dev: network device 1685 * @dev: network device