summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakub Kicinski2017-09-03 03:26:05 +0200
committerDavid S. Miller2017-09-04 06:22:05 +0200
commit9ce4fa548313f585c637aa846f7fc904b676bf43 (patch)
treefe886227eb05c3f4839c9bc4b072571d850e52f9 /lib
parentnfp: build the flower offload by default (diff)
downloadkernel-qcow2-linux-9ce4fa548313f585c637aa846f7fc904b676bf43.tar.gz
kernel-qcow2-linux-9ce4fa548313f585c637aa846f7fc904b676bf43.tar.xz
kernel-qcow2-linux-9ce4fa548313f585c637aa846f7fc904b676bf43.zip
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: 2dff19622421 ("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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions