]> git.baikalelectronics.ru Git - kernel.git/commit
tc: bpf: generalize pedit action
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 27 Mar 2015 02:53:57 +0000 (19:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 20:26:54 +0000 (13:26 -0700)
commit2c1c76941f7e11a7e08dfce3b8e6aa1c84f148e8
tree9824e0795f923a6370e53799f84e8ad13764cb23
parent6e2537a6fa3e5968ab0199cf25c4a83520e5254a
tc: bpf: generalize pedit action

existing TC action 'pedit' can munge any bits of the packet.
Generalize it for use in bpf programs attached as cls_bpf and act_bpf via
bpf_skb_store_bytes() helper function.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/verifier.c
net/core/filter.c