linux-stable/drivers/net/ethernet/netronome
Jakub Kicinski 9ce4fa5483 nfp: flower: restore RTNL locking around representor updates
When we moved to updating representors from a workqueue grabbing
the RTNL somehow got lost in the process.  Restore it, and make
sure RCU lock is not held while we are grabbing the RTNL.  RCU
protects the representor table, so since we will be under RTNL
we can drop RCU lock as soon as we find the netdev pointer.
RTNL is needed for the dev_set_mtu() call.

Fixes: 2dff196224 ("nfp: process MTU updates from firmware flower app")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-03 21:22:05 -07:00
..
nfp nfp: flower: restore RTNL locking around representor updates 2017-09-03 21:22:05 -07:00
Kconfig nfp: build the flower offload by default 2017-09-03 21:22:05 -07:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00