]> git.baikalelectronics.ru Git - kernel.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)
commitfdfcdce2d1221c1b23e7c542a07b7ff9f4709f6d
treeb86c86ffbef73ebbcbbfb9e4d8d62df32b7ccb0e
parent706509ac4f2559932c1e295f72ce3047a6af2d77
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