From patchwork Mon Jul 3 07:29:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zhirun" X-Patchwork-Id: 129185 X-Patchwork-Delegate: thomas@monjalon.net 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 6474E42DC0; Mon, 3 Jul 2023 09:39:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E239C40ED5; Mon, 3 Jul 2023 09:39:14 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id D28B840156 for ; Mon, 3 Jul 2023 09:39:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688369954; x=1719905954; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fK0Jg7UYmaLuivNVGC5pt4WjW6nAY5Inu3CDMFSr2HA=; b=Rosk393T7eyQJuZckj5kPL+IAqm3kbSx/T4K9B4iVQu1lq2pdkG2TQQz aWZgYm/vK0lSSx9VlcUNRxVn+bjc6cmL7rXIbIVYvcV1gytAU/3IJ14Az LIfr6KTx2pv7HGM0jtnYoh/iDujD1Sqp4YAzfCk9hEDLvT/lkHPoeUEvn Jwb8XGBTKz21uot5eHJtdHuzGaEnPP54iY/Wg9F4VfdSZsj9ao022S8wK RXfPJbNWKeIPAGz1IvXZe7tI54qZsmdtrtGvEaM/1N80LXswFnI89mzVS gQKxCzV6lEheKfxxodEHm+UFvl5kI+FXtrkDf0gMTnj5h+DbPodpZLb/v w==; X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="352642579" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="352642579" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 00:39:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="892462774" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="892462774" Received: from dpdk-zhirun-lmm.sh.intel.com ([10.67.119.94]) by orsmga005.jf.intel.com with ESMTP; 03 Jul 2023 00:39:11 -0700 From: Zhirun Yan To: dev@dpdk.org, jerinj@marvell.com, kirankumark@marvell.com, ndabilpuram@marvell.com Cc: qi.fu@intel.com, Zhirun Yan Subject: [PATCH v1] graph: fix graph model check in core binding Date: Mon, 3 Jul 2023 15:29:19 +0800 Message-Id: <20230703072919.760043-1-zhirun.yan@intel.com> X-Mailer: git-send-email 2.37.2 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 Fix graph model check in core binding with graph. Update release notes for new mcore dispatch model. Signed-off-by: Zhirun Yan --- doc/guides/rel_notes/release_23_07.rst | 12 ++++++++++++ lib/graph/graph.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes/release_23_07.rst index 4459144140..adaecb3e7c 100644 --- a/doc/guides/rel_notes/release_23_07.rst +++ b/doc/guides/rel_notes/release_23_07.rst @@ -185,6 +185,13 @@ New Features * Added SM2 algorithm support in asymmetric crypto operations. +* **Added mcore dispatch model in rte_graph library.** + + * Added set, get and validate model APIs to enhance graph framework + to chose different walk models. + * Added clone graph, bind graph with lcore and affinity node with + lcore APIs to support mcore dispatch model. + * **Added PDCP Library.** Added an experimental library to provide PDCP UL and DL processing of packets. @@ -200,6 +207,11 @@ New Features Enhanced the GRO library to support TCP packets over IPv6 network. +* **Update l3fwd-graph sample application.** + + Added a new cmdline option ``--model`` which can be used to chose + RTC or mcore dispatch model. + Removed Items ------------- diff --git a/lib/graph/graph.c b/lib/graph/graph.c index 0c28d925bc..26f0968a97 100644 --- a/lib/graph/graph.c +++ b/lib/graph/graph.c @@ -287,7 +287,7 @@ rte_graph_model_mcore_dispatch_core_bind(rte_graph_t id, int lcore) if (graph->id == id) break; - if (graph->graph->model == RTE_GRAPH_MODEL_MCORE_DISPATCH) + if (graph->graph->model != RTE_GRAPH_MODEL_MCORE_DISPATCH) goto fail; graph->lcore_id = lcore;