summaryrefslogtreecommitdiff
path: root/include/net/net_namespace.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2020-03-29 00:24:41 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-03-29 01:54:40 +0300
commitae661deca7b9f3fa7d1eda99aedbdd12155ade40 (patch)
treef903dfcf56b495dbd39b348872a191e3a8812c83 /include/net/net_namespace.h
parente9ff9d52540a53ce8c9eff5bf8b66467fe81eb2b (diff)
parent87854a0b57b34c52e172109b1d3949fc639b6474 (diff)
downloadlinux-ae661deca7b9f3fa7d1eda99aedbdd12155ade40.tar.xz
Merge branch 'ifla_xdp_expected_fd'
Toke Høiland-Jørgensen says: ==================== This series adds support for atomically replacing the XDP program loaded on an interface. This is achieved by means of a new netlink attribute that can specify the expected previous program to replace on the interface. If set, the kernel will compare this "expected fd" attribute with the program currently loaded on the interface, and reject the operation if it does not match. With this primitive, userspace applications can avoid stepping on each other's toes when simultaneously updating the loaded XDP program. Changelog: v4: - Switch back to passing FD instead of ID (Andrii) - Rename flag to XDP_FLAGS_REPLACE (for consistency with other similar uses) v3: - Pass existing ID instead of FD (Jakub) - Use opts struct for new libbpf function (Andrii) v2: - Fix checkpatch nits and add .strict_start_type to netlink policy (Jakub) ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/net/net_namespace.h')
0 files changed, 0 insertions, 0 deletions