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)
commit636d73da27e83ce4882f8823f79063bb37980961
treefd3824416e3d16191822ad22bd1cd564537479d1
parent1899c111a535e43046b14ae13639747d9d2544d6
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