]> git.proxmox.com Git - mirror_iproute2.git/commit
m_bpf: don't require default opcode on ebpf actions
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 8 Oct 2015 13:22:05 +0000 (15:22 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 12 Oct 2015 16:44:52 +0000 (09:44 -0700)
commit343dc90854978170842351683a1086e8ec9f53ed
treee8d1312e004e3f8bef9ed91333bc212141b5bdf4
parentb8c753245bad3f13a03b105b724ff406d278c753
m_bpf: don't require default opcode on ebpf actions

After the patch, the most minimal command to load an eBPF action
for late binding with auto index selection through tc is:

  tc actions add action bpf obj prog.o

We already set TC_ACT_PIPE in tc as default opcode, so if nothing
further has been specified, just use it. Also, allow "ok" next to
"pass" for matching cmdline on TC_ACT_OK.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tc/m_bpf.c