Show a patch.

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

{
    "id": 43877,
    "url": "http://patches.dpdk.org/api/patches/43877/",
    "web_url": "http://patches.dpdk.org/patch/43877/",
    "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-7-git-send-email-tdu@semihalf.com>",
    "date": "2018-08-24T14:54:54",
    "name": "[v2,6/6] net/mvpp2: add VLAN packet type support for parser offload",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5e6f59cc757b823bd9fcd3bd1c7bc748dc798165",
    "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/43877/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/43877/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43877/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 E37EF7CDE;\n\tFri, 24 Aug 2018 16:55:15 +0200 (CEST)",
            "from mail-lj1-f195.google.com (mail-lj1-f195.google.com\n\t[209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 821475F72\n\tfor <dev@dpdk.org>; Fri, 24 Aug 2018 16:55:10 +0200 (CEST)",
            "by mail-lj1-f195.google.com with SMTP id f8-v6so7131353ljk.1\n\tfor <dev@dpdk.org>; Fri, 24 Aug 2018 07:55:10 -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.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 24 Aug 2018 07:55:08 -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": "ANB0VdZrAbna5KlW8gPvWCi4BZW3deE6ecQGFiZNn3DJtHvQADL3EWGaxoPXQxzsfMOuDzQDS7kLjQ==",
        "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=RiHTFc5IROF+rR74not8nQ52o6A7SWEJIrPv9/aPEEA=;\n\tb=pM5rfPcE/CYK6I1KmZeeHvcsU3fGLDccM8ij4M6JQzCEw4UX7zZ41sD4Dzk6coNKqe\n\t8Tootv+LUI1IHc8KYyknbDvhYyjS6/efLEROhq8PBjIb0RIuxnLSQGqS467ZSVRrkfwl\n\ts+YPr7o4KjPklC1woMnS1wEMYZGKUfzAV0hHhJgoKk/y+wgoNYPehVcK5NSeVD8PMzQ2\n\t4vurhKeMNZ0O6mDqz9AestdnmqUlk/Ix0uUFwBv3OW8V4zKYycVkvYHEEAKaRy3X5ve/\n\tuXrnFxnz2F7m5COP68La5ueKC25De7RHWWegasFGyaQVrfTVW/Qhd5F0x2sqfDGH9J0Y\n\tviuQ==",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 2002:a2e:1609:: with SMTP id\n\tw9-v6mr1610034ljd.120.1535122509991; \n\tFri, 24 Aug 2018 07:55:09 -0700 (PDT)",
        "Message-Id": "<1535122494-30249-7-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=RiHTFc5IROF+rR74not8nQ52o6A7SWEJIrPv9/aPEEA=;\n\tb=HK8t49Bq3wCGwaxyeuzTYFk9agQO3V7WUQ4vN749LMCK+MlCMkE/yoKgU5K3p+e8FY\n\tgN0+ZGDwB6yyBcjjqC4KpPM/F67mE+xL2Y9Me0qHJv4PpsieRMZB5UnRnb2uNTB0Mum9\n\t6FwtBtFlYj6Dpl9r6cKq3u9hn2BwuNzEZD2d/35vTEUihz2HPB325HfwKWJfwLqnH3Tg\n\t464OucUvghOEO4kRc9L2O19PZL26j5eEwZ79i0GHGy3t4uvzTQPeZZPU5/PWnNmwaX/1\n\t/wf2mzBHhvTqjXc0uZIh4tLaJtfykRk50sfWk1c2b+vz417AbMa5366smKx6UG+yAlCx\n\tx8ZQ==",
        "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:54 +0200",
        "X-Gm-Message-State": "APzg51Chieoiu+kxhFONsqH13em/AxwEca/NMjHmBW9bGC/BFncH5Xf2\n\tDM5Fzg9p13vDZCxgj1X9tH/Lob818Ps=",
        "Cc": "nsamsono@marvell.com,\n\tmw@semihalf.com",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 6/6] net/mvpp2: add VLAN packet type support\n\tfor parser offload"
    },
    "content": "From: Natalie Samsonov <nsamsono@marvell.com>\n\nAdd VLAN packet type support for parser offload.\n\nSigned-off-by: Natalie Samsonov <nsamsono@marvell.com>\nReviewed-by: Shlomi Gridish <sgridish@marvell.com>\nReviewed-by: Dmitri Epshtein <dima@marvell.com>\nReviewed-by: Yuval Caduri <cyuval@marvell.com>\n---\n drivers/net/mvpp2/mrvl_ethdev.c | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)",
    "diff": "diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c\nindex 5cd84c1..5b92d82 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.c\n+++ b/drivers/net/mvpp2/mrvl_ethdev.c\n@@ -1353,6 +1353,8 @@ mrvl_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)\n {\n \tstatic const uint32_t ptypes[] = {\n \t\tRTE_PTYPE_L2_ETHER,\n+\t\tRTE_PTYPE_L2_ETHER_VLAN,\n+\t\tRTE_PTYPE_L2_ETHER_QINQ,\n \t\tRTE_PTYPE_L3_IPV4,\n \t\tRTE_PTYPE_L3_IPV4_EXT,\n \t\tRTE_PTYPE_L3_IPV4_EXT_UNKNOWN,\n@@ -1922,13 +1924,27 @@ mrvl_desc_to_packet_type_and_offset(struct pp2_ppio_desc *desc,\n {\n \tenum pp2_inq_l3_type l3_type;\n \tenum pp2_inq_l4_type l4_type;\n+\tenum pp2_inq_vlan_tag vlan_tag;\n \tuint64_t packet_type;\n \n \tpp2_ppio_inq_desc_get_l3_info(desc, &l3_type, l3_offset);\n \tpp2_ppio_inq_desc_get_l4_info(desc, &l4_type, l4_offset);\n+\tpp2_ppio_inq_desc_get_vlan_tag(desc, &vlan_tag);\n \n \tpacket_type = RTE_PTYPE_L2_ETHER;\n \n+\tswitch (vlan_tag) {\n+\tcase PP2_INQ_VLAN_TAG_SINGLE:\n+\t\tpacket_type |= RTE_PTYPE_L2_ETHER_VLAN;\n+\t\tbreak;\n+\tcase PP2_INQ_VLAN_TAG_DOUBLE:\n+\tcase PP2_INQ_VLAN_TAG_TRIPLE:\n+\t\tpacket_type |= RTE_PTYPE_L2_ETHER_QINQ;\n+\t\tbreak;\n+\tdefault:\n+\t\tbreak;\n+\t}\n+\n \tswitch (l3_type) {\n \tcase PP2_INQ_L3_TYPE_IPV4_NO_OPTS:\n \t\tpacket_type |= RTE_PTYPE_L3_IPV4;\n",
    "prefixes": [
        "v2",
        "6/6"
    ]
}