Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87438/?format=api
https://patches.dpdk.org/api/patches/87438/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210127160948.6008-32-lironh@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": "<20210127160948.6008-32-lironh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210127160948.6008-32-lironh@marvell.com", "date": "2021-01-27T16:09:45", "name": "[v3,31/34] net/mvpp2: support custom header before ethernet", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "955cecd6b7e552e411d3f3068af53b94ae09b1ed", "submitter": { "id": 996, "url": "https://patches.dpdk.org/api/people/996/?format=api", "name": "Liron Himi", "email": "lironh@marvell.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/20210127160948.6008-32-lironh@marvell.com/mbox/", "series": [ { "id": 14976, "url": "https://patches.dpdk.org/api/series/14976/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14976", "date": "2021-01-27T16:09:14", "name": "net/mvpp2: misc updates", "version": 3, "mbox": "https://patches.dpdk.org/series/14976/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/87438/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/87438/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 4B47FA052A;\n\tWed, 27 Jan 2021 17:16:29 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6F70F140F88;\n\tWed, 27 Jan 2021 17:11:08 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 8E3A0140F7B\n for <dev@dpdk.org>; Wed, 27 Jan 2021 17:11:04 +0100 (CET)", "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 10RG5naG027274; Wed, 27 Jan 2021 08:11:03 -0800", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 368j1uc3bc-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 27 Jan 2021 08:11:03 -0800", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Wed, 27 Jan 2021 08:11:02 -0800", "from pt-lxl0023.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Wed, 27 Jan 2021 08:11:00 -0800" ], "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=hb0fDXJIB0APVp14QS3pDecrSfnggn4GL37MX5POz8I=;\n b=UKG9B96cjiPS9dsferRVipKgY1TnzFDFzny50jfDRbLBzb+3I3X2v1IxT7iK8mjZzUyW\n SCXZL+jlxxXvMlGF/EVnmMWdpexo+ApkJEyHWA5sqa1MybzT09RpdZh1uGucLVBWY+fC\n L3IVROJYyRRBoV2kcWUnK0Nf7+BmalniU43pzQSCAQgWnb2zgKEEqvO2VMofI6ob4BPm\n YsW8q7WdvvXutFhRYwJTikQSuUUtsvtqknue7zi72TzVZeW565K63DjyDFic9phbJwWo\n 2bD6VuQnHoBG+1KaqyZNW3M+9QUhNC3SHSEUfpbgN+fJdyNGuLPhjOGiMLj1NjjDdn5g MQ==", "From": "<lironh@marvell.com>", "To": "<jerinj@marvell.com>, <ferruh.yigit@intel.com>", "CC": "<dev@dpdk.org>, Dana Vardi <danat@marvell.com>, Liron Himi\n <lironh@marvell.com>", "Date": "Wed, 27 Jan 2021 18:09:45 +0200", "Message-ID": "<20210127160948.6008-32-lironh@marvell.com>", "X-Mailer": "git-send-email 2.28.0", "In-Reply-To": "<20210127160948.6008-1-lironh@marvell.com>", "References": "<20210122191925.24308-1-lironh@marvell.com>\n <20210127160948.6008-1-lironh@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737\n definitions=2021-01-27_05:2021-01-27,\n 2021-01-27 signatures=0", "Subject": "[dpdk-dev] [PATCH v3 31/34] net/mvpp2: support custom header before\n ethernet", "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: Dana Vardi <danat@marvell.com>\n\nExtend 'start_hdr' options with custom header.\n\nSigned-off-by: Dana Vardi <danat@marvell.com>\nReviewed-by: Liron Himi <lironh@marvell.com>\n---\n doc/guides/nics/mvpp2.rst | 2 +-\n drivers/net/mvpp2/mrvl_qos.c | 5 +++++\n 2 files changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/doc/guides/nics/mvpp2.rst b/doc/guides/nics/mvpp2.rst\nindex 8400fc9846..8106ef9dcb 100644\n--- a/doc/guides/nics/mvpp2.rst\n+++ b/doc/guides/nics/mvpp2.rst\n@@ -261,7 +261,7 @@ Where:\n \n - ``<portnum>``: DPDK Port number (0..n).\n \n-- ``<start_hdr>``: Indicate what is the start header mode (`none` (eth), `dsa`, or `ext_dsa`).\n+- ``<start_hdr>``: Indicate what is the start header mode (`none` (eth), `dsa`, `ext_dsa` or `custom`).\n \n - ``<default_tc>``: Default traffic class (e.g. 0)\n \ndiff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c\nindex e420c0cbc5..9fec3c1566 100644\n--- a/drivers/net/mvpp2/mrvl_qos.c\n+++ b/drivers/net/mvpp2/mrvl_qos.c\n@@ -23,6 +23,7 @@\n #define MRVL_TOK_START_HDR \"start_hdr\"\n #define MRVL_TOK_START_HDR_NONE \"none\"\n #define MRVL_TOK_START_HDR_DSA \"dsa\"\n+#define MRVL_TOK_START_HDR_CUSTOM \"custom\"\n #define MRVL_TOK_START_HDR_EXT_DSA \"ext_dsa\"\n #define MRVL_TOK_DEFAULT_TC \"default_tc\"\n #define MRVL_TOK_DSCP \"dscp\"\n@@ -742,6 +743,10 @@ mrvl_get_cfg(const char *key __rte_unused, const char *path, void *extra_args)\n \t\t\t\tsizeof(MRVL_TOK_START_HDR_DSA)))\n \t\t\t\t(*cfg)->port[n].eth_start_hdr =\n \t\t\t\tPP2_PPIO_HDR_ETH_DSA;\n+\t\t\telse if (!strncmp(entry, MRVL_TOK_START_HDR_CUSTOM,\n+\t\t\t\tsizeof(MRVL_TOK_START_HDR_CUSTOM)))\n+\t\t\t\t(*cfg)->port[n].eth_start_hdr =\n+\t\t\t\tPP2_PPIO_HDR_ETH_CUSTOM;\n \t\t\telse if (!strncmp(entry, MRVL_TOK_START_HDR_EXT_DSA,\n \t\t\t\tsizeof(MRVL_TOK_START_HDR_EXT_DSA))) {\n \t\t\t\t(*cfg)->port[n].eth_start_hdr =\n", "prefixes": [ "v3", "31/34" ] }{ "id": 87438, "url": "