]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: enable packet split only when IOMMU present
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 6 Feb 2015 08:52:11 +0000 (08:52 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 25 Feb 2015 05:13:35 +0000 (21:13 -0800)
commit2276f1abf57e9eaef6a313ef9039f9d6e1c9b4c0
tree7f246a4179f47ecfa258030e8e54eb60933abca3
parenta4e3d41899128a417bcbfd490dea8a867ea49752
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>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c