summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e.h
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2017-05-24 07:55:35 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-06-21 03:17:09 +0200
commit74608d17fe29b2cddceea609033019b32e8a0650 (patch)
tree3f169c473da3df18c6f34b5cd93ac86f47a18b19 /drivers/net/ethernet/intel/i40e/i40e.h
parenti40e: add XDP support for pass and drop actions (diff)
downloadlinux-74608d17fe29b2cddceea609033019b32e8a0650.tar.xz
linux-74608d17fe29b2cddceea609033019b32e8a0650.zip
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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e.h')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index d3195b29d53c..4250ab55a9f1 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -629,6 +629,7 @@ struct i40e_vsi {
/* These are containers of ring pointers, allocated at run-time */
struct i40e_ring **rx_rings;
struct i40e_ring **tx_rings;
+ struct i40e_ring **xdp_rings; /* XDP Tx rings */
u32 active_filters;
u32 promisc_threshold;