linux/drivers/net/ethernet/intel/i40e
Arkadiusz Kubalewski 12738ac475 i40e: Fix sparse errors in i40e_txrx.c
Remove error handling through pointers. Instead use plain int
to return value from i40e_run_xdp(...).

Previously:
- sparse errors were produced during compilation:
i40e_txrx.c:2338 i40e_run_xdp() error: (-2147483647) too low for ERR_PTR
i40e_txrx.c:2558 i40e_clean_rx_irq() error: 'skb' dereferencing possible ERR_PTR()

- sk_buff* was used to return value, but it has never had valid
pointer to sk_buff. Returned value was always int handled as
a pointer.

Fixes: 0c8493d90b ("i40e: add XDP support for pass and drop actions")
Fixes: 2e68931238 ("i40e: split XDP_TX tail and XDP_REDIRECT map flushing")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-04-08 10:21:37 -07:00
..
i40e.h i40e: Fix kernel oops when i40e driver removes VF's 2021-03-25 12:49:35 -07:00
i40e_adminq.c i40e: Allow changing FEC settings on X722 if supported by FW 2020-10-13 19:44:01 -07:00
i40e_adminq.h intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
i40e_adminq_cmd.h i40e: Add hardware configuration for software based DCB 2021-02-10 14:28:39 -08:00
i40e_alloc.h
i40e_client.c intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
i40e_common.c i40e: Add hardware configuration for software based DCB 2021-02-10 14:28:39 -08:00
i40e_dcb.c i40e: Fix uninitialized variable mfs_max 2021-02-15 15:21:46 -08:00
i40e_dcb.h i40e: Add hardware configuration for software based DCB 2021-02-10 14:28:39 -08:00
i40e_dcb_nl.c i40e: Add netlink callbacks support for software based DCB 2021-02-10 14:28:40 -08:00
i40e_ddp.c
i40e_debugfs.c i40e: use 16B HW descriptors instead of 32B 2020-09-14 09:45:35 -07:00
i40e_devids.h
i40e_diag.c
i40e_diag.h
i40e_ethtool.c i40e: Fix parameters in aq_get_phy_register() 2021-04-08 10:21:37 -07:00
i40e_hmc.c
i40e_hmc.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_main.c i40e: Fix inconsistent indenting 2021-04-01 09:27:38 -07:00
i40e_nvm.c
i40e_osdep.h
i40e_prototype.h i40e: Add hardware configuration for software based DCB 2021-02-10 14:28:39 -08:00
i40e_ptp.c intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
i40e_register.h i40e: Add EEE status getting & setting implementation 2021-02-10 14:28:40 -08:00
i40e_status.h
i40e_trace.h intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
i40e_txrx.c i40e: Fix sparse errors in i40e_txrx.c 2021-04-08 10:21:37 -07:00
i40e_txrx.h i40e: store the result of i40e_rx_offset() onto i40e_ring 2021-02-12 10:35:13 -08:00
i40e_txrx_common.h intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
i40e_type.h i40e: VLAN field for flow director 2021-02-10 14:28:40 -08:00
i40e_virtchnl_pf.c i40e: Fix kernel oops when i40e driver removes VF's 2021-03-25 12:49:35 -07:00
i40e_virtchnl_pf.h i40e: Revert "i40e: don't report link up for a VF who hasn't enabled queues" 2021-02-01 13:18:31 -08:00
i40e_xsk.c i40e: fix receiving of single packets in xsk zero-copy mode 2021-04-01 09:27:38 -07:00
i40e_xsk.h i40e: Use batched xsk Tx interfaces to increase performance 2020-11-17 22:07:40 +01:00
Makefile