nfp: flower: fix for take a mutex lock in soft irq context and rcu lock
authorHui Zhou <hui.zhou@corigine.com>
Tue, 5 Dec 2023 09:26:25 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2023 10:18:53 +0000 (10:18 +0000)
commit0ad722bd9ee3a9bdfca9613148645e4c9b7f26cf
tree550903c7e46f63b4f1ded5b79b91aea34ad122d4
parent803a809d3d85cf06a04770fb04b585364d2d26dc
nfp: flower: fix for take a mutex lock in soft irq context and rcu lock

The neighbour event callback call the function nfp_tun_write_neigh,
this function will take a mutex lock and it is in soft irq context,
change the work queue to process the neighbour event.

Move the nfp_tun_write_neigh function out of range rcu_read_lock/unlock()
in function nfp_tunnel_request_route_v4 and nfp_tunnel_request_route_v6.

Fixes: abc210952af7 ("nfp: flower: tunnel neigh support bond offload")
CC: stable@vger.kernel.org # 6.2+
Signed-off-by: Hui Zhou <hui.zhou@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c