[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:20 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:56:00 +0800 > Cunming Liang wrote: > >> +int >> +rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id, >> + int epfd, int op, void *data) >> +{ >> +uint32_t vec; >> +struct rte_eth_dev *d

[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-21 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v8 changes - add addtion check for EEXIT v7 chan

[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-21 Thread Stephen Hemminger
On Thu, 21 May 2015 16:56:00 +0800 Cunming Liang wrote: > +int > +rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id, > + int epfd, int op, void *data) > +{ > + uint32_t vec; > + struct rte_eth_dev *dev; > + struct rte_intr_handle *intr_handle; > +

[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-21 Thread Stephen Hemminger
On Thu, 21 May 2015 16:56:00 +0800 Cunming Liang wrote: > + if (!rte_eth_dev_is_valid_port(port_id)) { > + PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); > + return -ENODEV; > + } > + > + dev = &rte_eth_devices[port_id]; > + if (dev == NULL) { > +