summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e.h
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2015-02-06 08:52:11 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-02-24 21:13:35 -0800
commit2bc7ee8ac5439efec66fa20a8dc01c0a2b5af739 (patch)
tree7f246a4179f47ecfa258030e8e54eb60933abca3 /drivers/net/ethernet/intel/i40e/i40e.h
parent0e888980a3c4f4751d0898ca9153285199224ff8 (diff)
downloadblackbird-op-linux-2bc7ee8ac5439efec66fa20a8dc01c0a2b5af739.tar.gz
blackbird-op-linux-2bc7ee8ac5439efec66fa20a8dc01c0a2b5af739.zip
i40e: enable packet split only when IOMMU present
When an IOMMU is in use, the packet split receive path shows a distinct advantage over the single-buffer path because it minimizes DMA mapping and unmapping. However, this is not an advantage for systems with no IOMMU. At init time, check to see if an IOMMU is enabled and enable packet split receives. Change-ID: I4f70d2e9c31bbea3dc8fd0c5734959a6e6602210 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Jim Young <james.m.young@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 3ee730dab82d..eb6307edbdd4 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -36,6 +36,7 @@
#include <linux/aer.h>
#include <linux/netdevice.h>
#include <linux/ioport.h>
+#include <linux/iommu.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/string.h>
OpenPOWER on IntegriCloud