Hi Stephen, I had no answer to this comment. Please check.
2014-06-20 15:06, Thomas Monjalon: > 2014-06-19 15:12, Stephen Hemminger: > > 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. > > [...] > > > @@ -197,6 +197,8 @@ struct rte_pci_driver { > > > > #define RTE_PCI_DRV_MULTIPLE 0x0002 > > /** Device needs to be unbound even if no module is provided */ > > #define RTE_PCI_DRV_FORCE_UNBIND 0x0004 > > > > +/** Device driver supports link state interrupt */ > > +#define RTE_PCI_DRV_LSC 0x0008 > > I feel RTE_PCI_DRV_INTR_LSC would be easier to understand. > Do you agree? > > Note that related event is RTE_ETH_EVENT_INTR_LSC > and configuration is intr_conf.lsc. > > Title should be "ethdev: add link state interrupt flag". A v3 would be nice. Thanks -- Thomas