[Intel-wired-lan] [PATCH v4 net-next 2/4] igb: Fix passing 0 to ERR_PTR in igb_run_xdp()
Rout, ChandanX
chandanx.rout at intel.com
Tue Nov 12 12:26:19 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 2/4] igb: Fix passing 0 to ERR_PTR
>in igb_run_xdp()
>
>igb_run_xdp() converts customed xdp action to a negative error code with the
>sk_buff pointer type which be checked with IS_ERR in igb_clean_rx_irq().
>Remove this error pointer handing instead use plain int return value.
>
>Fixes: 9cbc948b5a20 ("igb: add XDP support")
>Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
>Reviewed-by: Jacob Keller <jacob.e.keller at intel.com>
>Signed-off-by: Yue Haibing <yuehaibing at huawei.com>
>---
> drivers/net/ethernet/intel/igb/igb_main.c | 22 ++++++++--------------
> 1 file changed, 8 insertions(+), 14 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