[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-12 Thread Liang, Cunming
On 5/11/2015 11:00 PM, Stephen Hemminger wrote: > On Mon, 11 May 2015 13:31:04 +0800 > "Liang, Cunming" wrote: > >>> Since MSI-X vectors are limited on many hardware platforms, this whole API >>> should be changed so that max_intr is based on number of rx_queues actually >>> used by the applicat

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-11 Thread Liang, Cunming
On 5/6/2015 2:36 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:44 +0800 > Cunming Liang wrote: > >> >> +/* set max interrupt vfio request */ >> +if (pci_dev->intr_handle.vec_en) { >> +pci_dev->intr_handle.max_intr = hw->mac.max_rx_queues + >> +

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-11 Thread Stephen Hemminger
On Mon, 11 May 2015 13:31:04 +0800 "Liang, Cunming" wrote: > > Since MSI-X vectors are limited on many hardware platforms, this whole API > > should be changed so that max_intr is based on number of rx_queues actually > > used by the application. That means the setup needs to move from init to

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-05 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v7 changes - ad

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-05 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:44 +0800 Cunming Liang wrote: > > + /* set max interrupt vfio request */ > + if (pci_dev->intr_handle.vec_en) { > + pci_dev->intr_handle.max_intr = hw->mac.max_rx_queues + > + IXGBEVF_MAX_OTHER_INTR; > + pci_dev->intr