get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44748,
    "url": "https://patches.dpdk.org/api/patches/44748/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1536976343-5548-1-git-send-email-jerry.lilijun@huawei.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": "<1536976343-5548-1-git-send-email-jerry.lilijun@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1536976343-5548-1-git-send-email-jerry.lilijun@huawei.com",
    "date": "2018-09-15T01:52:23",
    "name": "bonding: add QinQ packet xmit hash support",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "98bdd3f0e75875f28fd495d7a3481f75706a58d6",
    "submitter": {
        "id": 205,
        "url": "https://patches.dpdk.org/api/people/205/?format=api",
        "name": "Lilijun (Jerry)",
        "email": "jerry.lilijun@huawei.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/1536976343-5548-1-git-send-email-jerry.lilijun@huawei.com/mbox/",
    "series": [
        {
            "id": 1331,
            "url": "https://patches.dpdk.org/api/series/1331/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1331",
            "date": "2018-09-15T01:52:23",
            "name": "bonding: add QinQ packet xmit hash support",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1331/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/44748/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/44748/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2319C568A;\n\tSat, 15 Sep 2018 03:52:40 +0200 (CEST)",
            "from huawei.com (szxga05-in.huawei.com [45.249.212.191])\n\tby dpdk.org (Postfix) with ESMTP id 53A845681\n\tfor <dev@dpdk.org>; Sat, 15 Sep 2018 03:52:38 +0200 (CEST)",
            "from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 1782E929B7F20\n\tfor <dev@dpdk.org>; Sat, 15 Sep 2018 09:52:35 +0800 (CST)",
            "from localhost (10.177.20.134) by DGGEMS403-HUB.china.huawei.com\n\t(10.3.19.203) with Microsoft SMTP Server id 14.3.399.0;\n\tSat, 15 Sep 2018 09:52:27 +0800"
        ],
        "From": "Lilijun <jerry.lilijun@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Lilijun <jerry.lilijun@huawei.com>",
        "Date": "Sat, 15 Sep 2018 09:52:23 +0800",
        "Message-ID": "<1536976343-5548-1-git-send-email-jerry.lilijun@huawei.com>",
        "X-Mailer": "git-send-email 1.8.4.msysgit.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.177.20.134]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH] bonding: add QinQ packet xmit hash support",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "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>",
        "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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "For QinQ packet with ether type 0x88a8, dpdk bond's xmit hash policy is\nnot worked to get the ip or port field.\n\nSigned-off-by: Lilijun <jerry.lilijun@huawei.com>\n---\n drivers/net/bonding/rte_eth_bond_pmd.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c\nindex 58f7377..4417422 100644\n--- a/drivers/net/bonding/rte_eth_bond_pmd.c\n+++ b/drivers/net/bonding/rte_eth_bond_pmd.c\n@@ -37,7 +37,8 @@\n {\n \tsize_t vlan_offset = 0;\n \n-\tif (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto) {\n+\tif (rte_cpu_to_be_16(ETHER_TYPE_VLAN) == *proto ||\n+\t\trte_cpu_to_be_16(ETHER_TYPE_QINQ) == *proto) {\n \t\tstruct vlan_hdr *vlan_hdr = (struct vlan_hdr *)(eth_hdr + 1);\n \n \t\tvlan_offset = sizeof(struct vlan_hdr);\n",
    "prefixes": []
}