i40e: add support for XDP_TX action
authorBjörn Töpel <bjorn.topel@intel.com>
Wed, 24 May 2017 05:55:35 +0000 (07:55 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 21 Jun 2017 01:17:09 +0000 (18:17 -0700)
commit74608d17fe29b2cddceea609033019b32e8a0650
tree3f169c473da3df18c6f34b5cd93ac86f47a18b19
parent0c8493d90b6bb0f5c4fe9217db8f7203f24c0f28
i40e: add support for XDP_TX action

This patch adds proper XDP_TX action support. For each Tx ring, an
additional XDP Tx ring is allocated and setup. This version does the
DMA mapping in the fast-path, which will penalize performance for
IOMMU enabled systems. Further, debugfs support is not wired up for
the XDP Tx rings.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h