Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137786/?format=api
http://patches.dpdk.org/api/patches/137786/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240301191451.57168-17-hkalra@marvell.com/", "project": { "id": 1, "url": "http://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": "<20240301191451.57168-17-hkalra@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240301191451.57168-17-hkalra@marvell.com", "date": "2024-03-01T19:14:43", "name": "[v5,16/23] common/cnxk: base support for eswitch VF", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "f97b3def445e7bd2dbf8576fd67dd347e168f03b", "submitter": { "id": 1182, "url": "http://patches.dpdk.org/api/people/1182/?format=api", "name": "Harman Kalra", "email": "hkalra@marvell.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240301191451.57168-17-hkalra@marvell.com/mbox/", "series": [ { "id": 31343, "url": "http://patches.dpdk.org/api/series/31343/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31343", "date": "2024-03-01T19:14:27", "name": "net/cnxk: support for port representors", "version": 5, "mbox": "http://patches.dpdk.org/series/31343/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137786/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137786/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 4C9B143C0F;\n\tFri, 1 Mar 2024 20:17:15 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CA26143443;\n\tFri, 1 Mar 2024 20:15:47 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 8E2CF43400\n for <dev@dpdk.org>; Fri, 1 Mar 2024 20:15:46 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 421H7Qa4016609 for <dev@dpdk.org>; Fri, 1 Mar 2024 11:15:46 -0800", "from dc6wp-exch02.marvell.com ([4.21.29.225])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wjfay8sd3-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 01 Mar 2024 11:15:45 -0800 (PST)", "from DC6WP-EXCH02.marvell.com (10.76.176.209) by\n DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.12; Fri, 1 Mar 2024 11:15:45 -0800", "from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com\n (10.76.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend\n Transport; Fri, 1 Mar 2024 11:15:45 -0800", "from localhost.localdomain (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id AE01C3F71EB;\n Fri, 1 Mar 2024 11:15:42 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-type; s=pfpt0220; bh=Sy7I2/W3PoFuhTBW4xUjg\n Vdxn0OYUfLTKU7YcNJ3KQE=; b=N9+dcpVUYQ5fnWKcGDN/MPkemZzi+Bx1op0kC\n douLjlIw26zWQZ8hw+DZPwberiDLRhfUv+Z1+EsUUBdxi50b0/Rga3aMLjpF06yr\n N5B47Q7rsPi5N6siNAtUd1+GUTR8mf1Cc16crv/ODhzWigbZofLZw07IGNs2iJyf\n h9Sy6gXL3SzdDkthndjGTxATmBHfqMse+qnHBeruKDKSp6HecMlHzQy0Wxy/DZer\n aDL3pmTM+tw5ZP3L276pU+Q3GVd/TC8ZMghNy5Q9QSfW2Tf30rTMU4iY5GXPHyMb\n JnKTLkTTb2HLuOs1Aicrh81SQe3bqtMq4Mbh2/8Jbw47/L4JA==", "From": "Harman Kalra <hkalra@marvell.com>", "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>, Harman Kalra <hkalra@marvell.com>", "CC": "<dev@dpdk.org>", "Subject": "[PATCH v5 16/23] common/cnxk: base support for eswitch VF", "Date": "Sat, 2 Mar 2024 00:44:43 +0530", "Message-ID": "<20240301191451.57168-17-hkalra@marvell.com>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20240301191451.57168-1-hkalra@marvell.com>", "References": "<20230811163419.165790-1-hkalra@marvell.com>\n <20240301191451.57168-1-hkalra@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "WJe6Jj6j26sG7bKnmsq_IhzhYOEs5Cgp", "X-Proofpoint-GUID": "WJe6Jj6j26sG7bKnmsq_IhzhYOEs5Cgp", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2024-03-01_20,2024-03-01_03,2023-05-22_02", "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": "Base ROC layer changes for supporting eswitch VF and NIX lbk\nchanges for ESW\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/common/cnxk/roc_constants.h | 1 +\n drivers/common/cnxk/roc_dev.c | 1 +\n drivers/common/cnxk/roc_nix.c | 15 +++++++++++++--\n drivers/common/cnxk/roc_nix.h | 1 +\n drivers/common/cnxk/roc_nix_priv.h | 1 +\n drivers/common/cnxk/version.map | 1 +\n 6 files changed, 18 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_constants.h b/drivers/common/cnxk/roc_constants.h\nindex cb4edbea58..21b3998cee 100644\n--- a/drivers/common/cnxk/roc_constants.h\n+++ b/drivers/common/cnxk/roc_constants.h\n@@ -44,6 +44,7 @@\n #define PCI_DEVID_CNXK_RVU_REE_PF 0xA0f4\n #define PCI_DEVID_CNXK_RVU_REE_VF 0xA0f5\n #define PCI_DEVID_CNXK_RVU_ESWITCH_PF 0xA0E0\n+#define PCI_DEVID_CNXK_RVU_ESWITCH_VF 0xA0E1\n \n #define PCI_DEVID_CN9K_CGX 0xA059\n #define PCI_DEVID_CN10K_RPM 0xA060\ndiff --git a/drivers/common/cnxk/roc_dev.c b/drivers/common/cnxk/roc_dev.c\nindex 75fc94e64a..8de2ed6c45 100644\n--- a/drivers/common/cnxk/roc_dev.c\n+++ b/drivers/common/cnxk/roc_dev.c\n@@ -1270,6 +1270,7 @@ dev_vf_hwcap_update(struct plt_pci_device *pci_dev, struct dev *dev)\n \tcase PCI_DEVID_CNXK_RVU_VF:\n \tcase PCI_DEVID_CNXK_RVU_SDP_VF:\n \tcase PCI_DEVID_CNXK_RVU_NIX_INL_VF:\n+\tcase PCI_DEVID_CNXK_RVU_ESWITCH_VF:\n \t\tdev->hwcap |= DEV_HWCAP_F_VF;\n \t\tbreak;\n \t}\ndiff --git a/drivers/common/cnxk/roc_nix.c b/drivers/common/cnxk/roc_nix.c\nindex e68d472f43..20202788b5 100644\n--- a/drivers/common/cnxk/roc_nix.c\n+++ b/drivers/common/cnxk/roc_nix.c\n@@ -13,6 +13,14 @@ roc_nix_is_lbk(struct roc_nix *roc_nix)\n \treturn nix->lbk_link;\n }\n \n+bool\n+roc_nix_is_esw(struct roc_nix *roc_nix)\n+{\n+\tstruct nix *nix = roc_nix_to_nix_priv(roc_nix);\n+\n+\treturn nix->esw_link;\n+}\n+\n int\n roc_nix_get_base_chan(struct roc_nix *roc_nix)\n {\n@@ -156,7 +164,7 @@ roc_nix_max_pkt_len(struct roc_nix *roc_nix)\n \tif (roc_model_is_cn9k())\n \t\treturn NIX_CN9K_MAX_HW_FRS;\n \n-\tif (nix->lbk_link)\n+\tif (nix->lbk_link || nix->esw_link)\n \t\treturn NIX_LBK_MAX_HW_FRS;\n \n \treturn NIX_RPM_MAX_HW_FRS;\n@@ -351,7 +359,7 @@ roc_nix_get_hw_info(struct roc_nix *roc_nix)\n \trc = mbox_process_msg(mbox, (void *)&hw_info);\n \tif (rc == 0) {\n \t\tnix->vwqe_interval = hw_info->vwqe_delay;\n-\t\tif (nix->lbk_link)\n+\t\tif (nix->lbk_link || nix->esw_link)\n \t\t\troc_nix->dwrr_mtu = hw_info->lbk_dwrr_mtu;\n \t\telse if (nix->sdp_link)\n \t\t\troc_nix->dwrr_mtu = hw_info->sdp_dwrr_mtu;\n@@ -368,6 +376,7 @@ sdp_lbk_id_update(struct plt_pci_device *pci_dev, struct nix *nix)\n {\n \tnix->sdp_link = false;\n \tnix->lbk_link = false;\n+\tnix->esw_link = false;\n \n \t/* Update SDP/LBK link based on PCI device id */\n \tswitch (pci_dev->id.device_id) {\n@@ -376,7 +385,9 @@ sdp_lbk_id_update(struct plt_pci_device *pci_dev, struct nix *nix)\n \t\tnix->sdp_link = true;\n \t\tbreak;\n \tcase PCI_DEVID_CNXK_RVU_AF_VF:\n+\tcase PCI_DEVID_CNXK_RVU_ESWITCH_VF:\n \t\tnix->lbk_link = true;\n+\t\tnix->esw_link = true;\n \t\tbreak;\n \tdefault:\n \t\tbreak;\ndiff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h\nindex 0289ce9820..bd3e540f45 100644\n--- a/drivers/common/cnxk/roc_nix.h\n+++ b/drivers/common/cnxk/roc_nix.h\n@@ -526,6 +526,7 @@ int __roc_api roc_nix_dev_fini(struct roc_nix *roc_nix);\n \n /* Type */\n bool __roc_api roc_nix_is_lbk(struct roc_nix *roc_nix);\n+bool __roc_api roc_nix_is_esw(struct roc_nix *roc_nix);\n bool __roc_api roc_nix_is_sdp(struct roc_nix *roc_nix);\n bool __roc_api roc_nix_is_pf(struct roc_nix *roc_nix);\n bool __roc_api roc_nix_is_vf_or_sdp(struct roc_nix *roc_nix);\ndiff --git a/drivers/common/cnxk/roc_nix_priv.h b/drivers/common/cnxk/roc_nix_priv.h\nindex 3d99ade2b4..275ffc8ea3 100644\n--- a/drivers/common/cnxk/roc_nix_priv.h\n+++ b/drivers/common/cnxk/roc_nix_priv.h\n@@ -170,6 +170,7 @@ struct nix {\n \tuintptr_t base;\n \tbool sdp_link;\n \tbool lbk_link;\n+\tbool esw_link;\n \tbool ptp_en;\n \tbool is_nix1;\n \ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex 18c2d9d632..424ad7f484 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -278,6 +278,7 @@ INTERNAL {\n \troc_nix_inl_outb_cpt_lfs_dump;\n \troc_nix_cpt_ctx_cache_sync;\n \troc_nix_is_lbk;\n+\troc_nix_is_esw;\n \troc_nix_is_pf;\n \troc_nix_is_sdp;\n \troc_nix_is_vf_or_sdp;\n", "prefixes": [ "v5", "16/23" ] }{ "id": 137786, "url": "