From: Tetsuya Mukawa Date: Mon, 21 Mar 2016 05:45:07 +0000 (+0900) Subject: ethdev: add queue state change event type X-Git-Tag: spdx-start~7209 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=89a28c2880a6c94d02bb3f299eeedae596607c54;p=dpdk.git ethdev: add queue state change event type This patch adds a below event type. - RTE_ETH_EVENT_QUEUE_STATE This event will occur when some queues are enabled or disabled. So far, only vhost PMD supports the event, and it indicates some queues are enabled or disabled by virtio-net device. Such an event is needed because virtio-net device may not enable all queues vhost PMD prepare. Because only vhost PMD uses the event so far, it isn't an actual hardware interrupt but a simple software event. Signed-off-by: Tetsuya Mukawa Acked-by: Ferruh Yigit Acked-by: Yuanhan Liu Acked-by: Rich Lane Tested-by: Rich Lane Minor modification to event name and comment: Suggested-by: Thomas Monjalon Signed-off-by: Bruce Richardson --- diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index ef9d02b507..f7448d3dd7 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -2945,6 +2945,8 @@ rte_eth_tx_buffer_count_callback(struct rte_mbuf **pkts, uint16_t unsent, enum rte_eth_event_type { RTE_ETH_EVENT_UNKNOWN, /**< unknown event type */ RTE_ETH_EVENT_INTR_LSC, /**< lsc interrupt event */ + RTE_ETH_EVENT_QUEUE_STATE, + /**< queue state event (enabled/disabled) */ RTE_ETH_EVENT_MAX /**< max value of this enum */ };