]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_bpf.c
bpf: make tc's bpf loader generic and move into lib
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 Nov 2016 00:20:59 +0000 (01:20 +0100)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 29 Nov 2016 20:35:32 +0000 (12:35 -0800)
commite42256699cac17a40c1b32011a4266c1ae93c36e
treead007a38328e9abd00b7f062ae9aaf9bba5eb45b
parent82252cdc50b5e199ac025da708f6117ab900ceda
bpf: make tc's bpf loader generic and move into lib

This work moves the bpf loader into the iproute2 library and reworks
the tc specific parts into generic code. It's useful as we can then
more easily support new program types by just having the same ELF
loader backend. Joint work with Thomas Graf. I hacked a rough start
of a test suite to make sure nothing breaks [1] and looks all good.

  [1] https://github.com/borkmann/clsact/blob/master/test_bpf.sh

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
12 files changed:
Makefile
configure
include/bpf_api.h
include/bpf_util.h [new file with mode: 0644]
lib/Makefile
lib/bpf.c [new file with mode: 0644]
tc/Makefile
tc/e_bpf.c
tc/f_bpf.c
tc/m_bpf.c
tc/tc_bpf.c [deleted file]
tc/tc_bpf.h [deleted file]