Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/124699/?format=api
https://patches.dpdk.org/api/patches/124699/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230302212057.1114863-10-mingxia.liu@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20230302212057.1114863-10-mingxia.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230302212057.1114863-10-mingxia.liu@intel.com", "date": "2023-03-02T21:20:45", "name": "[v9,09/21] net/cpfl: support basic Rx data path", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "cd08993a35a3dc46973c42f0d5fac5b036ebd266", "submitter": { "id": 2514, "url": "https://patches.dpdk.org/api/people/2514/?format=api", "name": "Liu, Mingxia", "email": "mingxia.liu@intel.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230302212057.1114863-10-mingxia.liu@intel.com/mbox/", "series": [ { "id": 27228, "url": "https://patches.dpdk.org/api/series/27228/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27228", "date": "2023-03-02T21:20:36", "name": "add support for cpfl PMD in DPDK", "version": 9, "mbox": "https://patches.dpdk.org/series/27228/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/124699/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/124699/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5DEEC41DB5;\n\tThu, 2 Mar 2023 14:07:12 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 579AC42D3C;\n\tThu, 2 Mar 2023 14:06:22 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 482C442BFE\n for <dev@dpdk.org>; Thu, 2 Mar 2023 14:06:19 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Mar 2023 05:06:18 -0800", "from dpdk-mingxial-ice.sh.intel.com ([10.67.110.191])\n by orsmga001.jf.intel.com with ESMTP; 02 Mar 2023 05:06:17 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1677762379; x=1709298379;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=8r2S1mke6UOr5N1jkHzPTWjwFcx4ImwtU4T1q55d5zY=;\n b=GBONeF7J2Upd1RdYSobWEQocj90AOZsCRbPxBlMRjwiNRsDVFKPDFGOz\n UrP2UaK/hCffveIA3HTF5CxE9MRD0LqKJ+MkGAygPqqeY0PaZu7OU4sDW\n B+rA6LQnGfADXA0JZYd0AUP4Ruri/iUdpanKn1K0jhrK/szNmylhn/Uvy\n ZWTqFxv8E1hokseg/PCpd3Q0GKFItj0KFfId0ZDPhVsBdSUQG8KObFTLe\n 2ITuAvjLmAUuddEjRwG8Ou7UgI5la3rPxUx3Mqsgb9pjnqTzKWDOXxsC5\n Bl+18f0MbWOO+XLDBAH2ju/zx0NDCqiwkZi5Z86bdP1DEi1T52o+h6Bnd A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10636\"; a=\"322988204\"", "E=Sophos;i=\"5.98,227,1673942400\"; d=\"scan'208\";a=\"322988204\"", "E=McAfee;i=\"6500,9779,10636\"; a=\"707406404\"", "E=Sophos;i=\"5.98,227,1673942400\"; d=\"scan'208\";a=\"707406404\"" ], "X-ExtLoop1": "1", "From": "Mingxia Liu <mingxia.liu@intel.com>", "To": "dev@dpdk.org,\n\tbeilei.xing@intel.com,\n\tyuying.zhang@intel.com", "Cc": "Mingxia Liu <mingxia.liu@intel.com>", "Subject": "[PATCH v9 09/21] net/cpfl: support basic Rx data path", "Date": "Thu, 2 Mar 2023 21:20:45 +0000", "Message-Id": "<20230302212057.1114863-10-mingxia.liu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230302212057.1114863-1-mingxia.liu@intel.com>", "References": "<20230302103527.931071-1-mingxia.liu@intel.com>\n <20230302212057.1114863-1-mingxia.liu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Add basic Rx support in split queue mode and single queue mode.\n\nSigned-off-by: Mingxia Liu <mingxia.liu@intel.com>\n---\n drivers/net/cpfl/cpfl_ethdev.c | 2 ++\n drivers/net/cpfl/cpfl_rxtx.c | 18 ++++++++++++++++++\n drivers/net/cpfl/cpfl_rxtx.h | 1 +\n 3 files changed, 21 insertions(+)", "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex efc8b8f1e4..767612b11c 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -252,6 +252,8 @@ cpfl_dev_start(struct rte_eth_dev *dev)\n \t\treturn ret;\n \t}\n \n+\tcpfl_set_rx_function(dev);\n+\n \tret = idpf_vc_vport_ena_dis(vport, true);\n \tif (ret != 0) {\n \t\tPMD_DRV_LOG(ERR, \"Failed to enable vport\");\ndiff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c\nindex f9295c970f..a0a442f61d 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.c\n+++ b/drivers/net/cpfl/cpfl_rxtx.c\n@@ -734,3 +734,21 @@ cpfl_stop_queues(struct rte_eth_dev *dev)\n \t\t\tPMD_DRV_LOG(WARNING, \"Fail to stop Tx queue %d\", i);\n \t}\n }\n+\n+void\n+cpfl_set_rx_function(struct rte_eth_dev *dev)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\n+\tif (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) {\n+\t\tPMD_DRV_LOG(NOTICE,\n+\t\t\t \"Using Split Scalar Rx (port %d).\",\n+\t\t\t dev->data->port_id);\n+\t\tdev->rx_pkt_burst = idpf_dp_splitq_recv_pkts;\n+\t} else {\n+\t\tPMD_DRV_LOG(NOTICE,\n+\t\t\t \"Using Single Scalar Rx (port %d).\",\n+\t\t\t dev->data->port_id);\n+\t\tdev->rx_pkt_burst = idpf_dp_singleq_recv_pkts;\n+\t}\n+}\ndiff --git a/drivers/net/cpfl/cpfl_rxtx.h b/drivers/net/cpfl/cpfl_rxtx.h\nindex f5882401dc..a5dd388e1f 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.h\n+++ b/drivers/net/cpfl/cpfl_rxtx.h\n@@ -37,4 +37,5 @@ int cpfl_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id);\n int cpfl_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id);\n void cpfl_dev_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid);\n void cpfl_dev_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid);\n+void cpfl_set_rx_function(struct rte_eth_dev *dev);\n #endif /* _CPFL_RXTX_H_ */\n", "prefixes": [ "v9", "09/21" ] }{ "id": 124699, "url": "