From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 127EE42C11; Fri, 2 Jun 2023 18:22:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02AB342D3E; Fri, 2 Jun 2023 18:22:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 6852F42D31 for ; Fri, 2 Jun 2023 18:22:37 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352AewZj027246; Fri, 2 Jun 2023 09:22:36 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=5ma31mPcewjVN0ZxemQ9boFUHl6HNRRg27mXK4C4loY=; b=Kq8oa90BXWmzgeDxKqq7zJ9vfcySZJLTC2FEfc5Fqs2jQtQERwTPbaZXrCuovxdKsNaW P8LVctUjKSGNjKhIhZpMZAxMVH6WCRur3FV4LW/ptr7ZRQ69BkjUQq+/vayx1R622KXb aZSvBbnH+HoBMr4XFr4RZMgII6sf0jVscT1TSXeLAeKLKVqtIuYpAxJdwR/srGm12eV4 GNThRLs6+xzzrZl6gfGgkxnug9iZ1RxnwxmyuXTd/h7B9cmqfoHvK/VScnSXU5Ofg0tY vytW9T2cbJZ5yJUE6NMaJWkVuy1w8zlozNBmKuRbAL5htlXolVWYznmSPsKoOV82sSjn MA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qy3uykfw3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 09:22:36 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 2 Jun 2023 09:22:34 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 2 Jun 2023 09:22:34 -0700 Received: from localhost.localdomain (unknown [10.28.36.156]) by maili.marvell.com (Postfix) with ESMTP id ADC023F7060; Fri, 2 Jun 2023 09:22:32 -0700 (PDT) From: Vamsi Attunuru To: , , CC: , , Subject: [PATCH v3 3/3] node/ethdev_rx: remove hardcoded node next details Date: Fri, 2 Jun 2023 09:22:16 -0700 Message-ID: <20230602162216.1868870-4-vattunuru@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230602162216.1868870-1-vattunuru@marvell.com> References: <20230425131516.3308612-1-vattunuru@marvell.com> <20230602162216.1868870-1-vattunuru@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: -MUuVTJCnfHWBrrzhAKYz8Nqv92GE3Wg X-Proofpoint-ORIG-GUID: -MUuVTJCnfHWBrrzhAKYz8Nqv92GE3Wg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_12,2023-06-02_02,2023-05-22_02 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 For ethdev_rx node, node_next details can be populated during node cloning time and same gets assigned to node context structure during node initialization. Patch removes overriding node_next details in node init(). Signed-off-by: Vamsi Attunuru --- lib/node/ethdev_ctrl.c | 1 + lib/node/ethdev_rx.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/node/ethdev_ctrl.c b/lib/node/ethdev_ctrl.c index 37df0431b8..496f791cee 100644 --- a/lib/node/ethdev_ctrl.c +++ b/lib/node/ethdev_ctrl.c @@ -82,6 +82,7 @@ rte_node_eth_config(struct rte_node_ethdev_config *conf, uint16_t nb_confs, memset(elem, 0, sizeof(ethdev_rx_node_elem_t)); elem->ctx.port_id = port_id; elem->ctx.queue_id = j; + elem->ctx.cls_next = ETHDEV_RX_NEXT_PKT_CLS; elem->nid = id; elem->next = rx_node_data->head; rx_node_data->head = elem; diff --git a/lib/node/ethdev_rx.c b/lib/node/ethdev_rx.c index a19237b42f..d131034991 100644 --- a/lib/node/ethdev_rx.c +++ b/lib/node/ethdev_rx.c @@ -194,8 +194,6 @@ ethdev_rx_node_init(const struct rte_graph *graph, struct rte_node *node) RTE_VERIFY(elem != NULL); - ctx->cls_next = ETHDEV_RX_NEXT_PKT_CLS; - /* Check and setup ptype */ return ethdev_ptype_setup(ctx->port_id, ctx->queue_id); } @@ -215,7 +213,6 @@ static struct rte_node_register ethdev_rx_node_base = { .nb_edges = ETHDEV_RX_NEXT_MAX, .next_nodes = { - /* Default pkt classification node */ [ETHDEV_RX_NEXT_PKT_CLS] = "pkt_cls", [ETHDEV_RX_NEXT_IP4_LOOKUP] = "ip4_lookup", }, -- 2.25.1