From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bowers, AndrewX Date: Thu, 12 Sep 2019 16:28:08 +0000 Subject: [Intel-wired-lan] [PATCH bpf-next 2/3] ixgbe: fix xdp handle calculations In-Reply-To: <20190911172435.21042-2-ciara.loftus@intel.com> References: <20190911172435.21042-1-ciara.loftus@intel.com> <20190911172435.21042-2-ciara.loftus@intel.com> Message-ID: <5bda2f9461624c7a8a82e8eea25b7de5@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: > -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On > Behalf Of Ciara Loftus > Sent: Wednesday, September 11, 2019 10:25 AM > To: netdev at vger.kernel.org; ast at kernel.org; daniel at iogearbox.net; Topel, > Bjorn ; Karlsson, Magnus > ; jonathan.lemon at gmail.com > Cc: Richardson, Bruce ; bpf at vger.kernel.org; > intel-wired-lan at lists.osuosl.org; Loftus, Ciara ; > Laatz, Kevin > Subject: [Intel-wired-lan] [PATCH bpf-next 2/3] ixgbe: fix xdp handle > calculations > > Commit 7cbbf9f1fa23 ("ixgbe: fix xdp handle calculations") reintroduced the > addition of the umem headroom to the xdp handle in the ixgbe_zca_free, > ixgbe_alloc_buffer_slow_zc and ixgbe_alloc_buffer_zc functions. However, > the headroom is already added to the handle in the function > ixgbe_run_xdp_zc. This commit removes the latter addition and fixes the > case where the headroom is non-zero. > > Fixes: 7cbbf9f1fa23 ("ixgbe: fix xdp handle calculations") > Signed-off-by: Ciara Loftus > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Tested-by: Andrew Bowers