]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: make xdp sample variable names more meaningful
authorBrenden Blanco <bblanco@plumgrid.com>
Thu, 21 Jul 2016 00:22:35 +0000 (17:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2016 05:07:24 +0000 (22:07 -0700)
commit6a69daea1e8f0243d737abb042083c71686773ab
tree200e2c322ef0863e1940ee08af5ae1d38947877e
parent37102f38cefb10f63e8cf7b2cccddd6516d524ff
bpf: make xdp sample variable names more meaningful

The naming choice of index is not terribly descriptive, and dropcnt is
in fact incorrect for xdp2. Pick better names for these: ipproto and
rxcnt.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/xdp1_kern.c
samples/bpf/xdp2_kern.c