linux/drivers/net/ethernet/netronome/nfp
Simon Horman 5b33afee93 nfp: move indirect block cleanup to flower app stop callback
The indirect block cleanup may cause control messages to be sent
if offloaded flows are present. However, by the time the flower app
cleanup callback is called txbufs are no longer available and attempts
to send control messages result in a NULL-pointer dereference in
nfp_ctrl_tx_one().

This problem may be resolved by moving the indirect block cleanup
to the stop callback, where txbufs are still available.

As suggested by Jakub Kicinski and Louis Peens.

Fixes: a1db217861 ("net: flow_offload: fix flow_indr_dev_unregister path")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Louis Peens <louis.peens@netronome.com>
Link: https://lore.kernel.org/r/20201216145701.30005-1-simon.horman@netronome.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-17 10:57:57 -08:00
..
abm nfp: abm: fix error return code in nfp_abm_vnic_alloc() 2020-05-08 18:39:36 -07:00
bpf bpf: Mutex protect used_maps array and count 2020-09-15 18:28:27 -07:00
crypto nfp: silence set but not used warning with IPV6=n 2020-12-09 19:42:03 -08:00
flower nfp: move indirect block cleanup to flower app stop callback 2020-12-17 10:57:57 -08:00
nfpcore nfp: Replace zero-length array with flexible-array member 2020-12-04 16:00:20 -08:00
nic
ccm_mbox.c
ccm.c
ccm.h nfp: tls: implement the stream sync RX resync 2019-12-19 17:46:51 -08:00
devlink_param.c
Makefile
nfp_abi.h
nfp_app_nic.c
nfp_app.c
nfp_app.h
nfp_asm.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
nfp_asm.h
nfp_devlink.c devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
nfp_hwmon.c
nfp_main.c devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
nfp_main.h devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
nfp_net_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
nfp_net_ctrl.c nfp: tls: implement the stream sync RX resync 2019-12-19 17:46:51 -08:00
nfp_net_ctrl.h nfp: tls: implement the stream sync RX resync 2019-12-19 17:46:51 -08:00
nfp_net_debugdump.c netronome: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
nfp_net_debugfs.c
nfp_net_ethtool.c nfp: use correct define to return NONE fec 2020-09-17 17:59:12 -07:00
nfp_net_main.c
nfp_net_repr.c net: partially revert dynamic lockdep key changes 2020-05-04 12:05:56 -07:00
nfp_net_repr.h netronome: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
nfp_net_sriov.c
nfp_net_sriov.h
nfp_net.h nfp: convert to new udp_tunnel_nic infra 2020-07-14 17:04:27 -07:00
nfp_netvf_main.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
nfp_port.c
nfp_port.h
nfp_shared_buf.c