On 5/12/21 12:34 PM, Kumar Kartikeya Dwivedi wrote:
This is the seventh version of the TC-BPF series. It adds a simple API that uses netlink to attach the tc filter and its bpf classifier program. Currently, a user needs to shell out to the tc command line to be able to create filters and attach SCHED_CLS programs as classifiers. With the help of this API, it will be possible to use libbpf for doing all parts of bpf program setup and attach. Changelog contains details of patchset evolution. In an effort to keep discussion focused, this series doesn't have the high level TC-BPF API. It was clear that there is a need for a bpf_link API in the kernel, hence that will be submitted as a separate patchset based on this. The individual commit messages contain more details, and also a brief summary of the API. Changelog: ---------- v6 -> v7 v6: https://lore.kernel.org/bpf/20210504005023.1240974-1-memxor@xxxxxxxxx * Address all comments from Daniel * Rename BPF_NL_* to NL_* * Make bpf_tc_query only support targeted query * Adjust inconsistencies in the commit message * Drop RTM_GETTFILTER NLM_F_DUMP support * Other misc cleanups (also remove bpf_tc_query selftest for dump mode)
Still had to do a major patch cleanup on the first two before pushing out, but I think it looks nice now and I do like the simple/straight forward API for tc/BPF. Anyway, applied, thanks!