ethdev: add link state interrupt flag
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 19 Jun 2014 22:12:38 +0000 (15:12 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Jun 2014 00:21:50 +0000 (02:21 +0200)
commita130f531187249a88edc1a5c29307f0d01abd827
tree4d2cfad029dfa877b72017e65669b19691ee6575
parent506964bf86b0b0a576d590e89c4494afceb86a94
ethdev: add link state interrupt flag

Only some devices support the link state interrupt configuration option.
Link state control does not work in virtual drivers
(virtio, vmxnet3, igbvf, and ixgbevf). Instead of having the application
try and guess whether it will work or not provide a driver flag that
can be checked instead.

Note: if device driver doesn't support link state control, what
would happen previously is that the code would never detect link
transitions. This prevents that.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
[Thomas: rename flag]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/include/rte_pci.h
lib/librte_ether/rte_ethdev.c
lib/librte_pmd_e1000/em_ethdev.c
lib/librte_pmd_e1000/igb_ethdev.c
lib/librte_pmd_ixgbe/ixgbe_ethdev.c