]> git.baikalelectronics.ru Git - kernel.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)
commit7e203b9ae764a378325157d6e6938558f9f5037e
tree64e4055c3e932bddb222c3a5ec814e413d8e7922
parent512f233378b566543890fac2661a5d96880665b8
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