net: thunderx: Add support for XDP_DROP
authorSunil Goutham <sgoutham@cavium.com>
Tue, 2 May 2017 13:06:55 +0000 (18:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:41:21 +0000 (15:41 -0400)
commitc56d91ce38d54c0c0dd8d0e4c6a9e0cfa557152f
tree3d2d5f802284396c8ad1d72f3782d9e6c963e1d1
parent05c773f52b96ef3fbc7d9bfa21caadc6247ef7a8
net: thunderx: Add support for XDP_DROP

Adds support for XDP_DROP.
Also since in XDP mode there is just a single buffer per page,
made changes to recycle DMA mapping info as well along with pages.

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
drivers/net/ethernet/cavium/thunder/nicvf_queues.h