commit | 395cacb5f1a0a290f1ae9ca4692c400d2b57a705 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Wed Jan 17 19:13:30 2018 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Jan 18 22:54:25 2018 +0100 |
tree | 132e2f49411d8464a996dd4c3b6e6e7d2aeea021 | |
parent | 064a07cba2919bcfbadf9edf5c26c740e69fa585 [diff] |
netdevsim: bpf: support fake map offload Add to netdevsim ability to pretend it's offloading BPF maps. We only allow allocation of tiny 2 entry maps, to keep things simple. Mutex lock may seem heavy for the operations we perform, but we want to make sure callbacks can sleep. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>