[dpdk-dev] [PATCH] igb_uio: fall back to enable/disable irq mode

Stephen Hemminger stephen at networkplumber.org
Thu Jul 24 17:11:06 CEST 2014


On Thu, 24 Jul 2014 09:11:36 +0600
Yerden Zhumabekov <e_zhumabekov at sts.kz> wrote:

> 24.07.2014 0:09, Stephen Hemminger пишет:
> >> Rewritten IRQ mode handling code introduced in commit 399a3f0d
> >> (igb_uio: fix IRQ mode handling) renders some faulty NICs (VMware
> >> e1000, for example) unusable if INTX mode is not supported.
> >>
> >> This patch gets these NICs up and running, but throwing a kernel
> >> warning.
> >>
> >> Signed-off-by: Yerden Zhumabekov <e_zhumabekov at sts.kz>
> > That is because the VMWare PCI INTX is broken.
> > The masking logic doesn't work.
> >
> > Rather than applying this patch a deeper fix in E1000 and DPDK handling
> > of link state is needed. Better to just make the E1000 able
> > to function without IRQ for Link state than just pretend masking works
> 
> I'll dig deeper then, maybe I'll figure out something.
> If IRQ doesn't hook anything then, I guess, NIC should be continuously
> checked for link state. If so, where should I put my efforts? PMD?
> 

I think what would be the best fix is:

1. In igb_uio, if INTX test fails then setup with interrupts. This can be done by
   setting the irq # to 0. UIO in kernel will then setup device without any IRQ support

2. In DPDK, change PCI code to handle case of UIO without interrupts, and set flag
   in the device structure.

3. In an accessor function in rte_ethdev layer add new function
  rte_eth_dev_has_link_intr() which checks for RTE_PCI_DRV_INTR_LSC flag
  and that interrupt setup was successful.

4. Application only configures dev_conf->intr_conf.lsc iff device
   supports it (see check #3)



More information about the dev mailing list