On 11/9/18 5:06 PM, David Ahern wrote: > On 11/9/18 9:21 AM, David Ahern wrote: >>> Is there possible to add only counters from xdp for vlans ? >>> This will help me in testing. >> I will take a look today at adding counters that you can dump using >> bpftool. It will be a temporary solution for this xdp program only. >> > > Same tree, kernel-tables-wip-02 branch. Compile kernel and install. > Compile samples as before.
new version: https://github.com/dsahern/linux.git bpf/kernel-tables-wip-03 This one prototypes incrementing counters for VLAN devices (rx/tx, packets and bytes). Counters for netdevices representing physical ports should be managed by the NIC driver. I will look at what can be done for packet captures (e.g., xdpdump and https://github.com/facebookincubator/katran/tree/master/tools). Most likely a project for next week.