]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: pass bi->xdp to ixgbe_construct_skb_zc() directly
authorAlexander Lobakin <alexandr.lobakin@intel.com>
Wed, 8 Dec 2021 14:07:00 +0000 (15:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:27 +0000 (14:23 +0200)
commita7161fcd7da595f03c26c328141e35c9da3584be
treec2c734565ef7c618c3acc70f6b92c7509b7f0d06
parent85a97bdd07f05055d6a7d9bc2852a2a4097e6a06
ixgbe: pass bi->xdp to ixgbe_construct_skb_zc() directly

[ Upstream commit ca6dfc86654b1398d25c42454c2797eee8cc4119 ]

To not dereference bi->xdp each time in ixgbe_construct_skb_zc(),
pass bi->xdp as an argument instead of bi. We can also call
xsk_buff_free() outside of the function as well as assign bi->xdp
to NULL, which seems to make it closer to its name.

Suggested-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c