nfp: flower: add rcu locks when accessing netdev for tunnels
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Tue, 14 May 2019 21:28:19 +0000 (14:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 May 2019 23:02:42 +0000 (16:02 -0700)
commitcb07d915bf278a7a3938b983bbcb4921366b5eff
tree064ee0844fc3d9947028a3dac8b9ad4338ec6097
parent3ebe1bca58c85325c97a22d4fc3f5b5420752e6f
nfp: flower: add rcu locks when accessing netdev for tunnels

Add rcu locks when accessing netdev when processing route request
and tunnel keep alive messages received from hardware.

Fixes: 8e6a9046b66a ("nfp: flower vxlan neighbour offload")
Fixes: 856f5b135758 ("nfp: flower vxlan neighbour keep-alive")
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c