]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Improve test for IOMMU in use
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 12 Jun 2013 17:09:08 +0000 (18:09 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 24 Jun 2013 19:02:53 +0000 (20:02 +0100)
commit55bb2b56acd1c8cdcfe07b5f8b1187f3908c536a
treefd3824416e3d16191822ad22bd1cd564537479d1
parent67a4db9d41ce4820d192da0d070636e0141acedf
sfc: Improve test for IOMMU in use

The device::iommu_group field may be set even if no IOMMU is in use.
iommu_present() is still a better indicator, although it doesn't tell
us whether *our* device is affected.

Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/rx.c