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)
commitd9094bda5c985d1f9da66e9e3fd6323b49dee44d
tree200e2c322ef0863e1940ee08af5ae1d38947877e
parent262d8625045e0c81b7859ecd192e9811710f19da
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