]> 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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 31 Jan 2022 17:47:21 +0000 (09:47 -0800)
commit1fbdaa13386804a31eefd3db3c5fe00e80ce9bc3
treeb45ea54752172f8b3dc11882bd4bbb8dc8db73ea
parentf9e61d365bafdee40fe2586fc6be490c3e824dad
ixgbe: pass bi->xdp to ixgbe_construct_skb_zc() directly

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>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c