igb_uio: fix IRQ mode handling
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 6 Jun 2014 23:50:36 +0000 (16:50 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 18 Jul 2014 23:54:41 +0000 (01:54 +0200)
commit399a3f0db8b0c5875d400b48149f1c3c34d2c56a
treefd17b3314cbd77c4e0133ccbd4c513fe6dd57ddf
parentfa4a13c9dd41068723d13f9629fcc584ba1164cd
igb_uio: fix IRQ mode handling

This pach reworks how IRQ mode handling is done.

The biggest code change is to use the standard INTX management
code that exists in more recent kernels (and provide backport version).
This also fixes the pci_lock code which was broken, since it was
not protecting against config access, and was doing trylock.

Make this driver behave like other Linux drivers.
Start at MSI-X and degrade to less desireable modes
automatically if the desired type is not available.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/include/rte_pci_dev_feature_defs.h
lib/librte_eal/linuxapp/igb_uio/igb_uio.c