Skip to contentSkip to conversation

net: dovetail: Fix wrongly merged comments

PATCH Applied Jan Kiszka 2 participants 2 messages Apr 13

Subsystems (2)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 net: dovetail: Fix wrongly merged comments

From: Jan Kiszka <[email protected]>

No functional changes.

---
 include/linux/netdevice.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
include/linux/netdevice.h +2 -4
index 2285dec50589b..b59673d4f3fda 100644
@@ -5001,18 +5001,16 @@ static inline bool __netif_tx_trylock(struct netdev_queue *txq)
 
 static inline void __netif_tx_unlock(struct netdev_queue *txq)
 {
-	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	netif_tx_unlock_oob(txq);
-	/* Pairs with READ_ONCE() in __dev_queue_xmit() */
+	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	WRITE_ONCE(txq->xmit_lock_owner, -1);
 	spin_unlock(&txq->_xmit_lock);
 }
 
 static inline void __netif_tx_unlock_bh(struct netdev_queue *txq)
 {
-	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	netif_tx_unlock_oob(txq);
-	/* Pairs with READ_ONCE() in __dev_queue_xmit() */
+	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	WRITE_ONCE(txq->xmit_lock_owner, -1);
 	spin_unlock_bh(&txq->_xmit_lock);
 }
Signature · 1 line
2.47.3
#1 lore raw
Quoted 24 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

No functional changes.

---
 include/linux/netdevice.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
include/linux/netdevice.h +1 -2
index 2285dec50589b..b59673d4f3fda 100644
@@ -5001,18 +5001,16 @@ static inline bool __netif_tx_trylock(struct netdev_queue *txq)
 
 static inline void __netif_tx_unlock(struct netdev_queue *txq)
 {
-	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	netif_tx_unlock_oob(txq);
-	/* Pairs with READ_ONCE() in __dev_queue_xmit() */
+	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	WRITE_ONCE(txq->xmit_lock_owner, -1);
 	spin_unlock(&txq->_xmit_lock);
 }

include/linux/netdevice.h static inline bool __netif_tx_trylock(struct netdev_queue *txq) · line 5016

Quoted 10 lines
include/linux/netdevice.h +1 -2
 
 static inline void __netif_tx_unlock_bh(struct netdev_queue *txq)
 {
-	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	netif_tx_unlock_oob(txq);
-	/* Pairs with READ_ONCE() in __dev_queue_xmit() */
+	/* Pairs with READ_ONCE() in netif_tx_owned() */
 	WRITE_ONCE(txq->xmit_lock_owner, -1);
 	spin_unlock_bh(&txq->_xmit_lock);
 }

Merged, thanks.

Signature · 1 line
Philippe.