aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 0d8c8718980a..4cd5e9e13c87 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2909,6 +2909,11 @@ static inline void netif_tx_unlock_bh(struct net_device *dev)
2909 } \ 2909 } \
2910} 2910}
2911 2911
2912#define HARD_TX_TRYLOCK(dev, txq) \
2913 (((dev->features & NETIF_F_LLTX) == 0) ? \
2914 __netif_tx_trylock(txq) : \
2915 true )
2916
2912#define HARD_TX_UNLOCK(dev, txq) { \ 2917#define HARD_TX_UNLOCK(dev, txq) { \
2913 if ((dev->features & NETIF_F_LLTX) == 0) { \ 2918 if ((dev->features & NETIF_F_LLTX) == 0) { \
2914 __netif_tx_unlock(txq); \ 2919 __netif_tx_unlock(txq); \