Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115921/?format=api
https://patches.dpdk.org/api/patches/115921/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220905133228.818616-17-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": "<20220905133228.818616-17-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220905133228.818616-17-ndabilpuram@marvell.com", "date": "2022-09-05T13:32:14", "name": "[v2,17/31] common/cnxk: updated shaper profile with red algorithm", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "97fee3d3c0bc9f7d0aa0ddecff482bcff5c7ef1c", "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/20220905133228.818616-17-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 24540, "url": "https://patches.dpdk.org/api/series/24540/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24540", "date": "2022-09-05T13:31:58", "name": "[v2,01/31] cnxk/net: add fc check in vector event Tx path", "version": 2, "mbox": "https://patches.dpdk.org/series/24540/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/115921/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/115921/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 0AA26A0558;\n\tMon, 5 Sep 2022 15:33:56 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3760842836;\n\tMon, 5 Sep 2022 15:33:26 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id BA44A42B87\n for <dev@dpdk.org>; Mon, 5 Sep 2022 15:33:24 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 285CToUk031672\n for <dev@dpdk.org>; Mon, 5 Sep 2022 06:33:24 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3jc6epnggq-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 05 Sep 2022 06:33:24 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 5 Sep 2022 06:33:21 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 5 Sep 2022 06:33:21 -0700", "from localhost.localdomain (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 00B615E6870;\n Mon, 5 Sep 2022 06:33:19 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=phd/9kVFjCDQWqYH60p1MBPrZdNdc2dsI8dxzKcYfJo=;\n b=UHlUIAJTeJU9Uh+5D2siB5TtaGkZ94AnaUIKSlP8pAXYrMFC/ENIED0bZrLMMbyvFOpR\n q6Lt+40/ICBJOySFc03NH+A7DKrU4X7XuKqtZmEzzlpVTJqpkiF7Mc4osVE8BF4kTVU/\n F9kfdJOA9C1uV2EHRGUQmiDkIgqqNU5hB1OKH2eYbuOrRI185NvaftrZBnfSBXEfjT+F\n kzQPPonkZ2bA6OGdX6saTFxEaaq5cj4Bti1oWQcOIr8F+3nQ4zUequWF8FOkGRmZ8EI6\n z26R4kdIcpwIQE+4KnvRgk8IKcJpP0lWaCG4eAqbWQOk2Q47iM1WCeSOvFS0NZ/U6rx8 dw==", "From": "Nithin Dabilpuram <ndabilpuram@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>", "CC": "<jerinj@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH v2 17/31] common/cnxk: updated shaper profile with red\n algorithm", "Date": "Mon, 5 Sep 2022 19:02:14 +0530", "Message-ID": "<20220905133228.818616-17-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220905133228.818616-1-ndabilpuram@marvell.com>", "References": "<20220809184908.24030-1-ndabilpuram@marvell.com>\n <20220905133228.818616-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "nzmHF1VLXTbrxbsaJQ6wiaHpnqktm_t3", "X-Proofpoint-GUID": "nzmHF1VLXTbrxbsaJQ6wiaHpnqktm_t3", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-09-05_09,2022-09-05_02,2022-06-22_01", "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": "From: Satha Rao <skoteshwar@marvell.com>\n\nUpdated shaper profile with user configurable RED algorithm.\nThis helps in configuring a TM node in red drop mode vs\nstall mode.\n\nSigned-off-by: Satha Rao <skoteshwar@marvell.com>\n---\n drivers/common/cnxk/roc_nix.h | 1 +\n drivers/common/cnxk/roc_nix_tm_utils.c | 7 +++++--\n 2 files changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h\nindex 77e4d2919b..b17623076c 100644\n--- a/drivers/common/cnxk/roc_nix.h\n+++ b/drivers/common/cnxk/roc_nix.h\n@@ -572,6 +572,7 @@ struct roc_nix_tm_shaper_profile {\n \tint32_t pkt_len_adj;\n \tbool pkt_mode;\n \tint8_t accuracy;\n+\tuint8_t red_algo;\n \t/* Function to free this memory */\n \tvoid (*free_fn)(void *profile);\n };\ndiff --git a/drivers/common/cnxk/roc_nix_tm_utils.c b/drivers/common/cnxk/roc_nix_tm_utils.c\nindex b9b605f8b1..193f9df5ff 100644\n--- a/drivers/common/cnxk/roc_nix_tm_utils.c\n+++ b/drivers/common/cnxk/roc_nix_tm_utils.c\n@@ -1236,11 +1236,14 @@ roc_nix_tm_shaper_default_red_algo(struct roc_nix_tm_node *node,\n \tstruct nix_tm_shaper_profile *profile;\n \tstruct nix_tm_shaper_data cir, pir;\n \n+\tif (!roc_prof)\n+\t\treturn;\n+\n \tprofile = (struct nix_tm_shaper_profile *)roc_prof->reserved;\n-\ttm_node->red_algo = NIX_REDALG_STD;\n+\ttm_node->red_algo = roc_prof->red_algo;\n \n \t/* C0 doesn't support STALL when both PIR & CIR are enabled */\n-\tif (profile && roc_model_is_cn96_cx()) {\n+\tif (roc_model_is_cn96_cx()) {\n \t\tnix_tm_shaper_conf_get(profile, &cir, &pir);\n \n \t\tif (pir.rate && cir.rate)\n", "prefixes": [ "v2", "17/31" ] }{ "id": 115921, "url": "