net: thunderx: Support for XDP header adjustment
authorSunil Goutham <sgoutham@cavium.com>
Tue, 2 May 2017 13:06:57 +0000 (18:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:41:22 +0000 (15:41 -0400)
commite3d06ff9ec9400b93bacf8fa92f3985c9412e282
tree9533bd0f5e6a6beaf1b9544b99b5199459e5b6b7
parent16f2bccda75da48888772c4829a468be620c5d79
net: thunderx: Support for XDP header adjustment

When in XDP mode reserve XDP_PACKET_HEADROOM bytes at the start
of receive buffer for XDP program to modify headers and adjust
packet start. Additional code changes done to handle such packets.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c