Show a patch.

GET /api/patches/43875/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 43875,
    "url": "http://patches.dpdk.org/api/patches/43875/",
    "web_url": "http://patches.dpdk.org/patch/43875/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1535122494-30249-5-git-send-email-tdu@semihalf.com>",
    "date": "2018-08-24T14:54:52",
    "name": "[v2,4/6] net/mvpp2: fix comments and error messages",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "54d8eaed7bbae03919ddbd9aff33624cc8a01aff",
    "submitter": {
        "id": 846,
        "url": "http://patches.dpdk.org/api/people/846/",
        "name": "Tomasz Duszynski",
        "email": "tdu@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/43875/mbox/",
    "series": [
        {
            "id": 1050,
            "url": "http://patches.dpdk.org/api/series/1050/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1050",
            "date": "2018-08-24T14:54:48",
            "name": "net/mvpp2 changes and features",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1050/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43875/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43875/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<1535122494-30249-1-git-send-email-tdu@semihalf.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.7.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 952906C9B;\n\tFri, 24 Aug 2018 16:55:12 +0200 (CEST)",
            "from mail-lj1-f193.google.com (mail-lj1-f193.google.com\n\t[209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 1BD745F34\n\tfor <dev@dpdk.org>; Fri, 24 Aug 2018 16:55:08 +0200 (CEST)",
            "by mail-lj1-f193.google.com with SMTP id 203-v6so7075620ljj.13\n\tfor <dev@dpdk.org>; Fri, 24 Aug 2018 07:55:08 -0700 (PDT)",
            "from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\tj140-v6sm1373659lfg.16.2018.08.24.07.55.06\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 24 Aug 2018 07:55:06 -0700 (PDT)"
        ],
        "References": "<1535113006-9393-1-git-send-email-tdu@semihalf.com>\n\t<1535122494-30249-1-git-send-email-tdu@semihalf.com>",
        "X-Google-Smtp-Source": "ANB0Vdb20ChulXA71hf0c1j624JCdc5VawGJFgxo5sulvVqAp2nY6GoGfr0SOmUmw8kniQr9kyfQNw==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=DuNIJKs2ebfo80SbqgaSWcAxNGMIp5DumfTiALAK+uI=;\n\tb=w6e/xE+sHPPmcxtq2vB0tRtnZBIMmzgBR3dInBL8KGTqDRRsVXvhPWeN8ORj3RPtQr\n\tW3MskbG3ymME1f3Q+rKz/mO9xJOZTzphXUQHpWum2qVlHmM6VGS2RnbzlQg8+eHc0X7K\n\tteFaSZOfN+9b+r/VdsOn3PubaDPeyOWuISSyE5jyUo7Ze8cosJgnPsLo4NIs+D860odB\n\t3Dwu1W+VEoM2qPl+PBt4EGEeV024KfPb6/aZ7zuvM9OTN/rYBlnRkxX43NPhvY6rrnex\n\t/JMxredCgDrbwJDDCW4CSq+oTvgng9KBlS1u44XEmSOUn2VnkAQRHyE9mOnsWyO1P1MQ\n\t37vQ==",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 2002:a2e:88d0:: with SMTP id\n\ta16-v6mr1578926ljk.63.1535122507579; \n\tFri, 24 Aug 2018 07:55:07 -0700 (PDT)",
        "Message-Id": "<1535122494-30249-5-git-send-email-tdu@semihalf.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=DuNIJKs2ebfo80SbqgaSWcAxNGMIp5DumfTiALAK+uI=;\n\tb=EPiEJrpaHnMr5mgo3NcY75iuZQ+XOgHk9scLtbZ6hPfPN5NKyx2ChpVR068/QJQaUH\n\tGca8ehnblj1sm4moC8dTOnwy7UHuJHwAoToqZjrrbB1nhhCASJAnhR5Iy4PairAZPx2I\n\tbAuPmTG8Mlw265pdzxOeyfKq3qKv7Xcn+/kSihzsnDcc/YHKOkX1GQ9rc6XfDVY1a4tV\n\tZ47WgmvzOX4WYx8f8JYRPNZmFlKNeVhuY30s2gWqWsLZqGM3pQ6w53wWj2qerxWsudfF\n\tgqXV9pXMxEHeFDePJfDuUanMipe00G0i4uO+Vh5jEOxJMinlryXTSpJiTEg2BeM8/MHs\n\t+RDQ==",
        "Delivered-To": "patchwork@dpdk.org",
        "Precedence": "list",
        "From": "Tomasz Duszynski <tdu@semihalf.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Fri, 24 Aug 2018 16:54:52 +0200",
        "X-Gm-Message-State": "APzg51CigBiSPWPL9cI2b0vEb5UPCGdBkdQzlweXFT9Rj893D/tiyzcI\n\tJ19mssb62EE82BtEqvADcAR/F9nzk18=",
        "Cc": "nsamsono@marvell.com,\n\tmw@semihalf.com,\n\ttdu@semihalf.com",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 4/6] net/mvpp2: fix comments and error messages"
    },
    "content": "From: Natalie Samsonov <nsamsono@marvell.com>\n\nFix comments and error messages.\n\nFixes: 7235341d7517 (\"net/mrvl: support classifier\")\nCc: tdu@semihalf.com\n\nSigned-off-by: Natalie Samsonov <nsamsono@marvell.com>\nReviewed-by: Liron Himi <lironh@marvell.com>\n---\n drivers/net/mvpp2/mrvl_flow.c | 29 +++++++++++++++++++++--------\n 1 file changed, 21 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/mvpp2/mrvl_flow.c b/drivers/net/mvpp2/mrvl_flow.c\nindex ecc3419..13295e6 100644\n--- a/drivers/net/mvpp2/mrvl_flow.c\n+++ b/drivers/net/mvpp2/mrvl_flow.c\n@@ -394,7 +394,8 @@ mrvl_parse_init(const struct rte_flow_item *item,\n  *\n  * @param spec Pointer to the specific flow item.\n  * @param mask Pointer to the specific flow item's mask.\n- * @param mask Pointer to the flow.\n+ * @param parse_dst Parse either destination or source mac address.\n+ * @param flow Pointer to the flow.\n  * @return 0 in case of success, negative error value otherwise.\n  */\n static int\n@@ -613,6 +614,7 @@ mrvl_parse_ip4_dscp(const struct rte_flow_item_ipv4 *spec,\n  *\n  * @param spec Pointer to the specific flow item.\n  * @param mask Pointer to the specific flow item's mask.\n+ * @param parse_dst Parse either destination or source ip address.\n  * @param flow Pointer to the flow.\n  * @return 0 in case of success, negative error value otherwise.\n  */\n@@ -726,6 +728,7 @@ mrvl_parse_ip4_proto(const struct rte_flow_item_ipv4 *spec,\n  *\n  * @param spec Pointer to the specific flow item.\n  * @param mask Pointer to the specific flow item's mask.\n+ * @param parse_dst Parse either destination or source ipv6 address.\n  * @param flow Pointer to the flow.\n  * @return 0 in case of success, negative error value otherwise.\n  */\n@@ -874,6 +877,7 @@ mrvl_parse_ip6_next_hdr(const struct rte_flow_item_ipv6 *spec,\n  *\n  * @param spec Pointer to the specific flow item.\n  * @param mask Pointer to the specific flow item's mask.\n+ * @param parse_dst Parse either destination or source port.\n  * @param flow Pointer to the flow.\n  * @return 0 in case of success, negative error value otherwise.\n  */\n@@ -949,6 +953,7 @@ mrvl_parse_tcp_dport(const struct rte_flow_item_tcp *spec,\n  *\n  * @param spec Pointer to the specific flow item.\n  * @param mask Pointer to the specific flow item's mask.\n+ * @param parse_dst Parse either destination or source port.\n  * @param flow Pointer to the flow.\n  * @return 0 in case of success, negative error value otherwise.\n  */\n@@ -1022,7 +1027,6 @@ mrvl_parse_udp_dport(const struct rte_flow_item_udp *spec,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1073,7 +1077,6 @@ mrvl_parse_eth(const struct rte_flow_item *item, struct rte_flow *flow,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1139,7 +1142,6 @@ mrvl_parse_vlan(const struct rte_flow_item *item,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1205,7 +1207,6 @@ mrvl_parse_ip4(const struct rte_flow_item *item,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1276,7 +1277,6 @@ mrvl_parse_ip6(const struct rte_flow_item *item,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1332,7 +1332,6 @@ mrvl_parse_tcp(const struct rte_flow_item *item,\n  * @param item Pointer to the flow item.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n- * @param fields Pointer to the parsed parsed fields enum.\n  * @returns 0 on success, negative value otherwise.\n  */\n static int\n@@ -1981,6 +1980,7 @@ mrvl_parse_pattern_ip6_tcp(const struct rte_flow_item pattern[],\n  * @param pattern Pointer to the flow pattern table.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n+ * @param ip6 1 to parse ip6 item, 0 to parse ip4 item.\n  * @returns 0 in case of success, negative value otherwise.\n  */\n static int\n@@ -2350,6 +2350,12 @@ mrvl_flow_parse(struct mrvl_priv *priv, const struct rte_flow_attr *attr,\n \treturn mrvl_flow_parse_actions(priv, actions, flow, error);\n }\n \n+/**\n+ * Get engine type for the given flow.\n+ *\n+ * @param field Pointer to the flow.\n+ * @returns The type of the engine.\n+ */\n static inline enum pp2_cls_tbl_type\n mrvl_engine_type(const struct rte_flow *flow)\n {\n@@ -2369,6 +2375,13 @@ mrvl_engine_type(const struct rte_flow *flow)\n \treturn PP2_CLS_TBL_MASKABLE;\n }\n \n+/**\n+ * Create classifier table.\n+ *\n+ * @param dev Pointer to the device.\n+ * @param flow Pointer to the very first flow.\n+ * @returns 0 in case of success, negative value otherwise.\n+ */\n static int\n mrvl_create_cls_table(struct rte_eth_dev *dev, struct rte_flow *first_flow)\n {\n@@ -2655,7 +2668,7 @@ mrvl_flow_remove(struct mrvl_priv *priv, struct rte_flow *flow,\n /**\n  * DPDK flow destroy callback called when flow is to be removed.\n  *\n- * @param priv Pointer to the port's private data.\n+ * @param dev Pointer to the device.\n  * @param flow Pointer to the flow.\n  * @param error Pointer to the flow error.\n  * @returns 0 in case of success, negative value otherwise.\n",
    "prefixes": [
        "v2",
        "4/6"
    ]
}