]> www.infradead.org Git - users/willy/pagecache.git/commit
ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()
authorYue Haibing <yuehaibing@huawei.com>
Mon, 6 Jan 2025 22:19:18 +0000 (14:19 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 02:15:57 +0000 (18:15 -0800)
commitc824125cbb181507d2c5488232399d0767e143c7
tree2ab8efa6a7ddf545293fc86d49161e62eeeeee09
parent8ae94669b1f3aca9079095415544f3e8b0e60e7e
ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()

ixgbe_run_xdp() converts customed xdp action to a negative error code
with the sk_buff pointer type which be checked with IS_ERR in
ixgbe_clean_rx_irq(). Remove this error pointer handing instead use
plain int return value.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250106221929.956999-11-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c