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