]> asedeno.scripts.mit.edu Git - linux.git/commit
nfp: bpf: fix context accesses
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 12 Oct 2017 17:34:14 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Oct 2017 18:13:28 +0000 (11:13 -0700)
commit943c57b97cde2ce0806e59b553c650c9889d8b69
treeb86c86ffbef73ebbcbbfb9e4d8d62df32b7ccb0e
parent0f6cf4ddf63fa4d645c36d96ed1092fe7a0a8d0f
nfp: bpf: fix context accesses

Sizes of fields in struct xdp_md/xdp_buff and some in sk_buff depend
on target architecture.  Take that into account and use struct xdp_buff,
not struct xdp_md.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c