]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp()
authorYue Haibing <yuehaibing@huawei.com>
Mon, 6 Jan 2025 22:19:19 +0000 (14:19 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 02:15:59 +0000 (18:15 -0800)
commit35f715cb77c3cb6e2033e71bf518b30705ab95ba
tree488297b11fc987b824a7b0caa60def34774fe89c
parentc824125cbb181507d2c5488232399d0767e143c7
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.

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-12-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c