Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87426/?format=api
http://patches.dpdk.org/api/patches/87426/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210127160948.6008-20-lironh@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": "<20210127160948.6008-20-lironh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210127160948.6008-20-lironh@marvell.com", "date": "2021-01-27T16:09:33", "name": "[v3,19/34] net/mvpp2: move common functions to common location", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "8ed50e8256b20ea95874671b69a947d994354876", "submitter": { "id": 996, "url": "http://patches.dpdk.org/api/people/996/?format=api", "name": "Liron Himi", "email": "lironh@marvell.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210127160948.6008-20-lironh@marvell.com/mbox/", "series": [ { "id": 14976, "url": "http://patches.dpdk.org/api/series/14976/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14976", "date": "2021-01-27T16:09:14", "name": "net/mvpp2: misc updates", "version": 3, "mbox": "http://patches.dpdk.org/series/14976/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/87426/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/87426/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 0BD8AA052A;\n\tWed, 27 Jan 2021 17:14:05 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 31F00140F38;\n\tWed, 27 Jan 2021 17:10:44 +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 EFAD9140F35\n for <dev@dpdk.org>; Wed, 27 Jan 2021 17:10:40 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 10RG6D2Y017354; Wed, 27 Jan 2021 08:10:40 -0800", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 36b1xphfu6-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 27 Jan 2021 08:10:40 -0800", "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.2;\n Wed, 27 Jan 2021 08:10:38 -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:10:36 -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=gSeq3GmipsO19VnKdCsVNCn+VG9NDAH5V4xWP6eyYZ0=;\n b=JcSNcXzkEACy4E+JF4ybOTx+w8NmitAU67hYDW0OZZ5wOedLoeGnAGPRPDkx4aByF2Zh\n MduWxonL3nWzLUiFPRxPtw70YhXOWYOer0l/bCWTOipmDV3WM1eNTaf7ptaNvu7/PyM8\n Skor7R2aB21W1eI++uB3P9JsfTbBG9SV5ROO44EDMt3Gu44tWBfPqcEh1I7SjAFsh31S\n g+oPegdHtsf7ECZpGnVOjCIYz5fa5OOoD51VweyrtVzgcjQHChosrRIbrokBbOfi1l13\n +b/lFsOTabkomEP/bfSDspzCpUXpiytSRN4ZkO1JAuoXIL94RirO1X8iY+7hsB/utVJa fQ==", "From": "<lironh@marvell.com>", "To": "<jerinj@marvell.com>, <ferruh.yigit@intel.com>", "CC": "<dev@dpdk.org>, Liron Himi <lironh@marvell.com>", "Date": "Wed, 27 Jan 2021 18:09:33 +0200", "Message-ID": "<20210127160948.6008-20-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 19/34] net/mvpp2: move common functions to\n common location", "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: Liron Himi <lironh@marvell.com>\n\nMove common functions to common location\n\nSigned-off-by: Liron Himi <lironh@marvell.com>\n---\n drivers/net/mvpp2/mrvl_ethdev.h | 41 +++++++++++++++++++++++++++++++++\n drivers/net/mvpp2/mrvl_qos.c | 24 -------------------\n 2 files changed, 41 insertions(+), 24 deletions(-)", "diff": "diff --git a/drivers/net/mvpp2/mrvl_ethdev.h b/drivers/net/mvpp2/mrvl_ethdev.h\nindex da026e6068..8be7603d4a 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.h\n+++ b/drivers/net/mvpp2/mrvl_ethdev.h\n@@ -195,4 +195,45 @@ extern int mrvl_logtype;\n \trte_log(RTE_LOG_ ## level, mrvl_logtype, \"%s(): \" fmt \"\\n\", \\\n \t\t__func__, ##args)\n \n+/**\n+ * Convert string to uint32_t with extra checks for result correctness.\n+ *\n+ * @param string String to convert.\n+ * @param val Conversion result.\n+ * @returns 0 in case of success, negative value otherwise.\n+ */\n+static int\n+get_val_securely(const char *string, uint32_t *val)\n+{\n+\tchar *endptr;\n+\tsize_t len = strlen(string);\n+\n+\tif (len == 0)\n+\t\treturn -1;\n+\n+\terrno = 0;\n+\t*val = strtoul(string, &endptr, 0);\n+\tif (errno != 0 || RTE_PTR_DIFF(endptr, string) != len)\n+\t\treturn -2;\n+\n+\treturn 0;\n+}\n+\n+static int\n+get_val_securely8(const char *string, uint32_t base, uint8_t *val)\n+{\n+\tchar *endptr;\n+\tsize_t len = strlen(string);\n+\n+\tif (len == 0)\n+\t\treturn -1;\n+\n+\terrno = 0;\n+\t*val = (uint8_t)strtoul(string, &endptr, base);\n+\tif (errno != 0 || RTE_PTR_DIFF(endptr, string) != len)\n+\t\treturn -2;\n+\n+\treturn 0;\n+}\n+\n #endif /* _MRVL_ETHDEV_H_ */\ndiff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c\nindex 18cf470dda..d3ad7cc5a7 100644\n--- a/drivers/net/mvpp2/mrvl_qos.c\n+++ b/drivers/net/mvpp2/mrvl_qos.c\n@@ -74,30 +74,6 @@\n /** Global configuration. */\n struct mrvl_cfg *mrvl_cfg;\n \n-/**\n- * Convert string to uint32_t with extra checks for result correctness.\n- *\n- * @param string String to convert.\n- * @param val Conversion result.\n- * @returns 0 in case of success, negative value otherwise.\n- */\n-static int\n-get_val_securely(const char *string, uint32_t *val)\n-{\n-\tchar *endptr;\n-\tsize_t len = strlen(string);\n-\n-\tif (len == 0)\n-\t\treturn -1;\n-\n-\terrno = 0;\n-\t*val = strtoul(string, &endptr, 0);\n-\tif (errno != 0 || RTE_PTR_DIFF(endptr, string) != len)\n-\t\treturn -2;\n-\n-\treturn 0;\n-}\n-\n /**\n * Read out-queue configuration from file.\n *\n", "prefixes": [ "v3", "19/34" ] }{ "id": 87426, "url": "