From patchwork Wed Sep 14 06:20:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ganapati Kundapura X-Patchwork-Id: 116264 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 92190A0032; Wed, 14 Sep 2022 08:20:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DDD240151; Wed, 14 Sep 2022 08:20:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id EF0D440141 for ; Wed, 14 Sep 2022 08:20:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663136433; x=1694672433; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6dddj0iKkb/+6DDrGARxF7TuoWC9J9PywwCxi8XZhag=; b=hLgvTXUMtdj3sXP+JzG1okIboZrroD2eX6GKxE6dr1L04iYaEDJ7ENHV j+90Xb//aYLXmMEcC35kEtwMYGvZ0fmYF03YpgCE2V2+HKkEYQUBLODYC 63bIwW0JzoiwKLKh9FhtEWc3IYFCXoZ1ZlWYn2AvRZRPbDcQBV0ZX22uL 287WNKpYOrTMaPZc2JJ3E5fK5f4tHzetzxveaa7N/w2I+ZvoCMPYtyEAb TL+vClrs+abt2aGS0SPeIzOPFDgD/BysL1qDlCVRZE6jJKZ2N7S/2f0x6 sNIgXAYOcbFv1lA3zJtTo3vcZB8PE3MLhAAem93GZ4p+6Une1YKGd2aUt w==; X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="281380420" X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="281380420" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 23:20:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="678911697" Received: from txandevlnx322.an.intel.com ([10.123.117.44]) by fmsmga008.fm.intel.com with ESMTP; 13 Sep 2022 23:20:31 -0700 From: Ganapati Kundapura To: dev@dpdk.org, jerinj@marvell.com Cc: jay.jayatheerthan@intel.com, s.v.naga.harish.k@intel.com Subject: [PATCH v2] eventdev/eth_rx: sub event type gets reset Date: Wed, 14 Sep 2022 01:20:29 -0500 Message-Id: <20220914062029.1687884-1-ganapati.kundapura@intel.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220913070205.1108906-1-ganapati.kundapura@intel.com> References: <20220913070205.1108906-1-ganapati.kundapura@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In rte_event_eth_rx_adapter_queue_add(), sub_event_type of rte_event structure is reset which can be used by the application to determine the processing function. Removed resetting of rte_event::sub_event_type Signed-off-by: Ganapati Kundapura Acked-by: Jay Jayatheerthan diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c index 64a6add..e42e41c 100644 --- a/lib/eventdev/rte_event_eth_rx_adapter.c +++ b/lib/eventdev/rte_event_eth_rx_adapter.c @@ -2054,7 +2054,6 @@ rxa_add_queue(struct event_eth_rx_adapter *rx_adapter, qi_ev->event = ev->event; qi_ev->op = RTE_EVENT_OP_NEW; qi_ev->event_type = RTE_EVENT_TYPE_ETH_RX_ADAPTER; - qi_ev->sub_event_type = 0; if (conf->rx_queue_flags & RTE_EVENT_ETH_RX_ADAPTER_QUEUE_FLOW_ID_VALID) {