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

2020-04-28 Thread Stephen Hemminger
On Tue, 28 Apr 2020 11:00:07 +0200 Davide Caratti wrote: > + print_hex(PRINT_ANY, "handle", "handle 0x%x ", handle); Do you want print_0xhex instead?

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

2020-04-28 Thread Andrea Claudi
On Tue, Apr 28, 2020 at 11:00 AM 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] tc: full JSON support for 'bpf' filter

2020-04-28 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