From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: [PATCH v13 1/2] ethdev: Add a new event type to notify a queue state changed event Date: Mon, 21 Mar 2016 14:45:07 +0900 Message-ID: <1458539108-15686-2-git-send-email-mukawa@igel.co.jp> References: <1458539108-15686-1-git-send-email-mukawa@igel.co.jp> Cc: bruce.richardson@intel.com, ann.zhuangyanying@huawei.com, thomas.monjalon@6wind.com, Tetsuya Mukawa To: dev@dpdk.org Return-path: Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by dpdk.org (Postfix) with ESMTP id A62D72BEF for ; Mon, 21 Mar 2016 06:45:19 +0100 (CET) Received: by mail-pf0-f173.google.com with SMTP id n5so251943295pfn.2 for ; Sun, 20 Mar 2016 22:45:19 -0700 (PDT) In-Reply-To: <1458539108-15686-1-git-send-email-mukawa@igel.co.jp> In-Reply-To: <1458030701-11487-3-git-send-email-mukawa@igel.co.jp> References: <1458030701-11487-3-git-send-email-mukawa@igel.co.jp> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds a below event type. - RTE_ETH_EVENT_QUEUE_STATE_CHANGE This event will be occured 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 --- lib/librte_ether/rte_ethdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index b5704e1..470d7a5 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -2917,6 +2917,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_CHANGE, + /**< queue state changed interrupt */ RTE_ETH_EVENT_MAX /**< max value of this enum */ }; -- 2.1.4