]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: prepare metadata handling for xdp_adjust_head()
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 10 Mar 2017 18:38:38 +0000 (10:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:43:19 +0000 (23:43 -0700)
commit0b8e0ffd383bfa41e9a05efcfbe32545abb6e848
treee4f9f1285a4e5f99bcdfb9ab5ad9ac1391c07648
parentea0241469f87b6f405f30d0543f553c035cd90b0
nfp: prepare metadata handling for xdp_adjust_head()

XDP may require us to move metadata to make room for pushing
headers.  Track meta data location with a pointer and pass
it explicitly to functions.

While at it validate that meta_len from the descriptor is not
bogus.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c