net/igb: fix Rx interrupt with VFIO and MSI-X
authorXiaoyun Li <xiaoyun.li@intel.com>
Mon, 6 Nov 2017 02:41:40 +0000 (10:41 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Nov 2017 09:19:02 +0000 (10:19 +0100)
commit88e04712f40fca9dd3ab98dd549e27791c320b75
tree3beee5db4a89fe29ec3ea5bcdd252b26158d1e90
parentc044ffaa37fb77de36b26188ba6e8f63ce00cc7c
net/igb: fix Rx interrupt with VFIO and MSI-X

When using VFIO and MSIX interrupt mode, cannot get Rx interrupts. Because
when enabling the interrupt vectors, the offset is computed in a way which
only supports IGB_UIO. But the offset should be different when using VFIO.
This patch fixes this issue.

Fixes: c3cd3de0ab50 ("igb: enable Rx queue interrupts for PF")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/igb_ethdev.c