igb_uio: allow multi-process access
authorXiao Wang <xiao.w.wang@intel.com>
Mon, 1 Jan 2018 22:00:10 +0000 (14:00 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jan 2018 23:36:44 +0000 (00:36 +0100)
commit19685d5aa79c2f86486b0afee6db4c7a280ea7b3
tree9ca66b6cc5c87a1cb1334d66070838559be4dc58
parent0d440d081ca1b5cccbb3b991908842c70731e460
igb_uio: allow multi-process access

In some case, one device are accessed by different processes via
different BARs, so one uio device may be opened by more than one
process, for this case we just need to enable interrupt once, and
pci_clear_master only when the last process closed.

Fixes: 5f6ff30dc507 ("igb_uio: fix interrupt enablement after FLR in VM")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c