Re: [PATCH iproute2-next v2] tc: full JSON support for 'bpf' filter

2020-05-05 Thread David Ahern
On 4/30/20 12:03 PM, Davide Caratti wrote: > example using eBPF: > > # tc filter add dev dummy0 ingress bpf \ > > direct-action obj ./bpf/filter.o sec tc-ingress > # tc -j filter show dev dummy0 ingress | jq > [ >{ > "protocol": "all", > "pref": 49152, > "kind": "bpf", >

Re: [PATCH iproute2-next v2] tc: full JSON support for 'bpf' filter

2020-04-30 Thread Andrea Claudi
On Thu, Apr 30, 2020 at 8:03 PM Davide Caratti wrote: > > example using eBPF: > > # tc filter add dev dummy0 ingress bpf \ > > direct-action obj ./bpf/filter.o sec tc-ingress > # tc -j filter show dev dummy0 ingress | jq > [ >{ > "protocol": "all", > "pref": 49152, > "kind"

[PATCH iproute2-next v2] tc: full JSON support for 'bpf' filter

2020-04-30 Thread Davide Caratti
example using eBPF: # tc filter add dev dummy0 ingress bpf \ > direct-action obj ./bpf/filter.o sec tc-ingress # tc -j filter show dev dummy0 ingress | jq [ { "protocol": "all", "pref": 49152, "kind": "bpf", "chain": 0 }, { "protocol": "all", "pref": 491