[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B96641EE4@ORSMSX101.amr.corp.intel.com>
Date: Sat, 16 Feb 2019 02:54:53 +0000
From: "Brown, Aaron F" <aaron.f.brown@...el.com>
To: Björn Töpel <bjorn.topel@...il.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "Topel, Bjorn" <bjorn.topel@...el.com>,
"Karlsson, Magnus" <magnus.karlsson@...el.com>,
"magnus.karlsson@...il.com" <magnus.karlsson@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Sokolowski, Jan" <jan.sokolowski@...el.com>
Subject: RE: [PATCH 2/2] i40e: add tracking of AF_XDP ZC state for each
queue pair
> From: netdev-owner@...r.kernel.org [mailto:netdev-
> owner@...r.kernel.org] On Behalf Of Björn Töpel
> Sent: Tuesday, February 12, 2019 12:52 AM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: Topel, Bjorn <bjorn.topel@...el.com>; Karlsson, Magnus
> <magnus.karlsson@...el.com>; magnus.karlsson@...il.com;
> netdev@...r.kernel.org; Sokolowski, Jan <jan.sokolowski@...el.com>
> Subject: [PATCH 2/2] i40e: add tracking of AF_XDP ZC state for each queue
> pair
>
> From: Björn Töpel <bjorn.topel@...el.com>
>
> In commit f3fef2b6e1cc ("i40e: Remove umem from VSI") a regression was
> introduced; When the VSI was reset, the setup code would try to enable
> AF_XDP ZC unconditionally (as long as there was a umem placed in the
> netdev._rx struct). Here, we add a bitmap to the VSI that tracks if a
> certain queue pair has been "zero-copy enabled" via the ndo_bpf. The
> bitmap is used in i40e_xsk_umem, and enables zero-copy if and only if
> XDP is enabled, the corresponding qid in the bitmap is set and the
> umem is non-NULL.
>
> Fixes: f3fef2b6e1cc ("i40e: Remove umem from VSI")
> Signed-off-by: Björn Töpel <bjorn.topel@...el.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e.h | 2 ++
> drivers/net/ethernet/intel/i40e/i40e_main.c | 10 +++++++++-
> drivers/net/ethernet/intel/i40e/i40e_xsk.c | 3 +++
> 3 files changed, 14 insertions(+), 1 deletion(-)
>
Tested-by: Aaron Brown <aaron.f.brown@...el.com>
Powered by blists - more mailing lists