summaryrefslogtreecommitdiff
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-12-27 18:39:03 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2017-12-31 16:12:22 +0100
commite0d3974ac77b0d581b92affe5851fc40ad2f42a4 (patch)
treece33ba273117c2a945de08734867f60aa75a7c58 /include/linux/bpf.h
parentfb982666e380c1632a74495b68b3c33a66e76430 (diff)
downloadlwn-e0d3974ac77b0d581b92affe5851fc40ad2f42a4.tar.gz
lwn-e0d3974ac77b0d581b92affe5851fc40ad2f42a4.zip
bpf: offload: don't require rtnl for dev list manipulation
We don't need the RTNL lock for all operations on offload state. We only need to hold it around ndo calls. The device offload initialization doesn't require it. The soon-to-come querying of the offload info will only need it partially. We will also be able to remove the waitqueue in following patches. Use struct rw_semaphore because map offload will require sleeping with the semaphore held for read. Suggested-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions