diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-07-21 23:45:56 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-25 20:37:02 -0700 |
commit | d4baa9368a5e4d694e787e0442ddd6ab95d6fd96 (patch) | |
tree | 1bb6e81dd5b28c224b1f28ee9817f0779971f3a1 /mm/percpu-vm.c | |
parent | 7f0a838254bdd9114b978ef2541a6ce330307e9e (diff) | |
download | linux-d4baa9368a5e4d694e787e0442ddd6ab95d6fd96.tar.gz linux-d4baa9368a5e4d694e787e0442ddd6ab95d6fd96.tar.bz2 linux-d4baa9368a5e4d694e787e0442ddd6ab95d6fd96.zip |
bpf, xdp: Extract common XDP program attachment logic
Further refactor XDP attachment code. dev_change_xdp_fd() is split into two
parts: getting bpf_progs from FDs and attachment logic, working with
bpf_progs. This makes attachment logic a bit more straightforward and
prepares code for bpf_xdp_link inclusion, which will share the common logic.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200722064603.3350758-4-andriin@fb.com
Diffstat (limited to 'mm/percpu-vm.c')
0 files changed, 0 insertions, 0 deletions