]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Always call igb_xdp_ring_update_tail() under Tx lock
authorSriram Yagnaraman <sriram.yagnaraman@est.tech>
Thu, 22 Aug 2024 07:42:07 +0000 (09:42 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 9 Sep 2024 18:01:01 +0000 (11:01 -0700)
commit27717f8b17c098c4373ddb8fe89e1a1899c7779d
tree7d780ee4d999206af581fe2f7744f03cf3550d18
parentd2940002b0aa42898de815a1453b29d440292386
igb: Always call igb_xdp_ring_update_tail() under Tx lock

Always call igb_xdp_ring_update_tail() under __netif_tx_lock, add a comment
and lockdep assert to indicate that. This is needed to share the same TX
ring between XDP, XSK and slow paths. Furthermore, the current XDP
implementation is racy on tail updates.

Fixes: 9cbc948b5a20 ("igb: add XDP support")
Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
[Kurt: Add lockdep assert and fixes tag]
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c