]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3222c43cbebc2f578b2c60ea83ebc89395499e12
tree3d2d5f802284396c8ad1d72f3782d9e6c963e1d1
parentc47ef23d9a89e7c988524dab993de281a0e0b7a3
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