]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: sockmap sample support for bpf_msg_cork_bytes()
authorJohn Fastabend <john.fastabend@gmail.com>
Sun, 18 Mar 2018 19:58:02 +0000 (12:58 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Mar 2018 20:14:40 +0000 (21:14 +0100)
commit468b3fdea8826b232a570d95ba45272eb38919cb
tree64e4055c3e932bddb222c3a5ec814e413d8e7922
parent1c16c3126ac938562a68ab7041fe74ce0de53166
bpf: sockmap sample support for bpf_msg_cork_bytes()

Add sample application support for the bpf_msg_cork_bytes helper. This
lets the user specify how many bytes each verdict should apply to.

Similar to apply_bytes() tests these can be run as a stand-alone test
when used without other options or inline with other tests by using
the txmsg_cork option along with any of the basic tests txmsg,
txmsg_redir, txmsg_drop.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/sockmap/sockmap_kern.c
samples/sockmap/sockmap_user.c
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/bpf_helpers.h