[Intel-wired-lan] [PATCH v4 net-next 4/4] ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp()

Rout, ChandanX chandanx.rout at intel.com
Tue Nov 12 12:22:22 UTC 2024



>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Yue
>Haibing
>Sent: Saturday, October 26, 2024 9:43 AM
>To: Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Kitszel, Przemyslaw
><przemyslaw.kitszel at intel.com>; davem at davemloft.net;
>edumazet at google.com; kuba at kernel.org; pabeni at redhat.com;
>ast at kernel.org; daniel at iogearbox.net; hawk at kernel.org;
>john.fastabend at gmail.com; Fijalkowski, Maciej
><maciej.fijalkowski at intel.com>; vedang.patel at intel.com; Joseph, Jithu
><jithu.joseph at intel.com>; andre.guedes at intel.com; horms at kernel.org; Keller,
>Jacob E <jacob.e.keller at intel.com>; sven.auhagen at voleatech.de;
>alexander.h.duyck at intel.com
>Cc: intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-
>kernel at vger.kernel.org; bpf at vger.kernel.org; yuehaibing at huawei.com
>Subject: [Intel-wired-lan] [PATCH v4 net-next 4/4] ixgbevf: Fix passing 0 to
>ERR_PTR in ixgbevf_run_xdp()
>
>ixgbevf_run_xdp() converts customed xdp action to a negative error code with
>the sk_buff pointer type which be checked with IS_ERR in
>ixgbevf_clean_rx_irq(). Remove this error pointer handing instead use plain int
>return value.
>
>Fixes: c7aec59657b6 ("ixgbevf: Add XDP support for pass and drop actions")
>Reviewed-by: Jacob Keller <jacob.e.keller at intel.com>
>Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
>Signed-off-by: Yue Haibing <yuehaibing at huawei.com>
>---
> .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 23 ++++++++-----------
> 1 file changed, 10 insertions(+), 13 deletions(-)
>

Tested-by: Chandan Kumar Rout <chandanx.rout at intel.com> (A Contingent Worker at Intel)



More information about the Intel-wired-lan mailing list