Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/94448/?format=api
https://patches.dpdk.org/api/patches/94448/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210618103741.26526-40-ndabilpuram@marvell.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": "<20210618103741.26526-40-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210618103741.26526-40-ndabilpuram@marvell.com", "date": "2021-06-18T10:37:18", "name": "[v3,39/62] net/cnxk: add link up/down operations", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "5422d348ba52cd0daf978e73995924ec1a4b3ba9", "submitter": { "id": 1202, "url": "https://patches.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@marvell.com" }, "delegate": { "id": 310, "url": "https://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210618103741.26526-40-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 17394, "url": "https://patches.dpdk.org/api/series/17394/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17394", "date": "2021-06-18T10:36:39", "name": "Marvell CNXK Ethdev Driver", "version": 3, "mbox": "https://patches.dpdk.org/series/17394/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/94448/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/94448/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 9D15CA0C46;\n\tFri, 18 Jun 2021 12:43:58 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BB349411D6;\n\tFri, 18 Jun 2021 12:40:55 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id A541F411D6\n for <dev@dpdk.org>; Fri, 18 Jun 2021 12:40:54 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 15IAZVgs032321 for <dev@dpdk.org>; Fri, 18 Jun 2021 03:40:53 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 398r750d59-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 18 Jun 2021 03:40:53 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Fri, 18 Jun 2021 03:40:52 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Fri, 18 Jun 2021 03:40:52 -0700", "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id E247F5B6949;\n Fri, 18 Jun 2021 03:40:34 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=4yLgTbDMpFUXVQUQPU5xrQZ2KJWDewsCeCuQruKYTcE=;\n b=CypKG8QNA0u+JYTxKfU04AsxyqQ42LFS2jgv9rhpHZKKieOtuxSdBtLyo/JuSYdMcLFf\n JReRCkwyhkvhjFyTCTXAnXVOB2VQFpzLT6N6qjigXzA3E+pHIVyvW7oSUp/sa/JmBfXi\n e8DVpBEuOF96tPlIFxHQJGd4nr2RBbbJPaZa7xWmrwV9YbN5lSTMF7N8Gh0BOCdo14Fr\n d70tqLIQNaSqL9scCgYFG+ocly74sP1hWZDSr2laHquQ5pJ7dcvVHC9DwLTKexNokN2a\n HYdKZWo9ewS4pTu9tPEJl8L5cRu4GPpZJF0Z5BZdxpHdYVDWwOjOXdYih+CXiEmj2bee cg==", "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>", "To": "<dev@dpdk.org>", "CC": "<jerinj@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>,\n <pbhagavatula@marvell.com>, <kirankumark@marvell.com>,\n <psatheesh@marvell.com>, <asekhar@marvell.com>, <hkalra@marvell.com>", "Date": "Fri, 18 Jun 2021 16:07:18 +0530", "Message-ID": "<20210618103741.26526-40-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20210618103741.26526-1-ndabilpuram@marvell.com>", "References": "<20210306153404.10781-1-ndabilpuram@marvell.com>\n <20210618103741.26526-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "YvckP3Gzvz1RhFZqq7zz7u9bg53sHOiB", "X-Proofpoint-GUID": "YvckP3Gzvz1RhFZqq7zz7u9bg53sHOiB", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-06-18_04:2021-06-18,\n 2021-06-18 signatures=0", "Subject": "[dpdk-dev] [PATCH v3 39/62] net/cnxk: add link up/down operations", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Sunil Kumar Kori <skori@marvell.com>\n\nPatch implements link up/down ethdev operations for\ncn9k and cn10k platform.\n\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n drivers/net/cnxk/cnxk_ethdev.c | 4 +++-\n drivers/net/cnxk/cnxk_ethdev.h | 4 ++++\n drivers/net/cnxk/cnxk_ethdev_ops.c | 47 ++++++++++++++++++++++++++++++++++++++\n 3 files changed, 54 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 4fe9c1c..c6072c1 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -963,7 +963,7 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev)\n \treturn rc;\n }\n \n-static int\n+int\n cnxk_nix_tx_queue_start(struct rte_eth_dev *eth_dev, uint16_t qid)\n {\n \tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n@@ -1177,6 +1177,8 @@ struct eth_dev_ops cnxk_eth_dev_ops = {\n \t.tx_burst_mode_get = cnxk_nix_tx_burst_mode_get,\n \t.flow_ctrl_get = cnxk_nix_flow_ctrl_get,\n \t.flow_ctrl_set = cnxk_nix_flow_ctrl_set,\n+\t.dev_set_link_up = cnxk_nix_set_link_up,\n+\t.dev_set_link_down = cnxk_nix_set_link_down,\n };\n \n static int\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h\nindex e788a42..5e982f9 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.h\n+++ b/drivers/net/cnxk/cnxk_ethdev.h\n@@ -251,6 +251,9 @@ int cnxk_nix_flow_ctrl_set(struct rte_eth_dev *eth_dev,\n \t\t\t struct rte_eth_fc_conf *fc_conf);\n int cnxk_nix_flow_ctrl_get(struct rte_eth_dev *eth_dev,\n \t\t\t struct rte_eth_fc_conf *fc_conf);\n+int cnxk_nix_set_link_up(struct rte_eth_dev *eth_dev);\n+int cnxk_nix_set_link_down(struct rte_eth_dev *eth_dev);\n+\n int cnxk_nix_configure(struct rte_eth_dev *eth_dev);\n int cnxk_nix_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \t\t\t uint16_t nb_desc, uint16_t fp_tx_q_sz,\n@@ -259,6 +262,7 @@ int cnxk_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \t\t\t uint16_t nb_desc, uint16_t fp_rx_q_sz,\n \t\t\t const struct rte_eth_rxconf *rx_conf,\n \t\t\t struct rte_mempool *mp);\n+int cnxk_nix_tx_queue_start(struct rte_eth_dev *eth_dev, uint16_t qid);\n int cnxk_nix_tx_queue_stop(struct rte_eth_dev *eth_dev, uint16_t qid);\n int cnxk_nix_dev_start(struct rte_eth_dev *eth_dev);\n \ndiff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c\nindex 420c928..b58d21e 100644\n--- a/drivers/net/cnxk/cnxk_ethdev_ops.c\n+++ b/drivers/net/cnxk/cnxk_ethdev_ops.c\n@@ -512,3 +512,50 @@ cnxk_nix_allmulticast_disable(struct rte_eth_dev *eth_dev)\n \treturn roc_nix_npc_mcast_config(&dev->nix, false,\n \t\t\t\t\teth_dev->data->promiscuous);\n }\n+\n+int\n+cnxk_nix_set_link_up(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tstruct roc_nix *nix = &dev->nix;\n+\tint rc, i;\n+\n+\tif (roc_nix_is_vf_or_sdp(nix))\n+\t\treturn -ENOTSUP;\n+\n+\trc = roc_nix_mac_link_state_set(nix, true);\n+\tif (rc)\n+\t\tgoto exit;\n+\n+\t/* Start tx queues */\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++) {\n+\t\trc = cnxk_nix_tx_queue_start(eth_dev, i);\n+\t\tif (rc)\n+\t\t\tgoto exit;\n+\t}\n+\n+exit:\n+\treturn rc;\n+}\n+\n+int\n+cnxk_nix_set_link_down(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tstruct roc_nix *nix = &dev->nix;\n+\tint rc, i;\n+\n+\tif (roc_nix_is_vf_or_sdp(nix))\n+\t\treturn -ENOTSUP;\n+\n+\t/* Stop tx queues */\n+\tfor (i = 0; i < eth_dev->data->nb_tx_queues; i++) {\n+\t\trc = cnxk_nix_tx_queue_stop(eth_dev, i);\n+\t\tif (rc)\n+\t\t\tgoto exit;\n+\t}\n+\n+\trc = roc_nix_mac_link_state_set(nix, false);\n+exit:\n+\treturn rc;\n+}\n", "prefixes": [ "v3", "39/62" ] }{ "id": 94448, "url": "