[Intel-wired-lan] [PATCH v4 net-next 7/9] ixgbe: pass bi->xdp to ixgbe_construct_skb_zc() directly
Penigalapati, Sandeep
sandeep.penigalapati at intel.com
Tue Jan 11 07:30:53 UTC 2022
>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Alexander Lobakin
>Sent: Wednesday, December 8, 2021 7:37 PM
>To: intel-wired-lan at lists.osuosl.org
>Cc: Song Liu <songliubraving at fb.com>; Jesper Dangaard Brouer
><hawk at kernel.org>; Daniel Borkmann <daniel at iogearbox.net>; Yonghong
>Song <yhs at fb.com>; Martin KaFai Lau <kafai at fb.com>; John Fastabend
><john.fastabend at gmail.com>; Alexei Starovoitov <ast at kernel.org>; Andrii
>Nakryiko <andrii at kernel.org>; Björn Töpel <bjorn at kernel.org>;
>netdev at vger.kernel.org; Jakub Kicinski <kuba at kernel.org>; KP Singh
><kpsingh at kernel.org>; bpf at vger.kernel.org; David S. Miller
><davem at davemloft.net>; linux-kernel at vger.kernel.org
>Subject: [Intel-wired-lan] [PATCH v4 net-next 7/9] 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 at intel.com>
>Signed-off-by: Alexander Lobakin <alexandr.lobakin at intel.com>
>---
> drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
More information about the Intel-wired-lan
mailing list