Show a patch.

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

{
    "id": 74510,
    "url": "https://patches.dpdk.org/api/patches/74510/?format=api",
    "web_url": "https://patches.dpdk.org/patch/74510/",
    "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"
    },
    "msgid": "<20200721030514.18947-1-zhihongx.peng@intel.com>",
    "date": "2020-07-21T03:05:14",
    "name": "[DPDK,v3] net/e1000: add VLAN extend feature to capability",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "23e2381c441b9e36d12f0991a9041e294b4603fa",
    "submitter": {
        "id": 1643,
        "url": "https://patches.dpdk.org/api/people/1643/?format=api",
        "name": "Peng, ZhihongX",
        "email": "zhihongx.peng@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74510/mbox/",
    "series": [
        {
            "id": 11181,
            "url": "https://patches.dpdk.org/api/series/11181/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11181",
            "date": "2020-07-21T03:05:14",
            "name": "[DPDK,v3] net/e1000: add VLAN extend feature to capability",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/11181/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74510/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74510/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<20200720064849.14795-1-zhihongx.peng@intel.com>",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"137541170\"",
            "E=Sophos;i=\"5.75,377,1589266800\"; d=\"scan'208\";a=\"137541170\"",
            "E=Sophos;i=\"5.75,377,1589266800\"; d=\"scan'208\";a=\"301469972\""
        ],
        "From": "zhihongx.peng@intel.com",
        "IronPort-SDR": [
            "\n z5aXbeJ/sPp4pvhBdG+j3iWq9qR1a9isjrgxhsbFtQNBMnNcj+l80swHNbnTrOyw7tpHZaB9RL\n i8x88YzKb+zQ==",
            "\n R0Hx0IcsQnd1vEvIZefav8owHDbSQNNOVF5dEje7cE7Igb9w1kz1nms276bOYH4uVZBDSsiFDD\n VgXlYsEwadFQ=="
        ],
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-ExtLoop1": "1",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20200721030514.18947-1-zhihongx.peng@intel.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 06585A0526;\n\tTue, 21 Jul 2020 05:05:32 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 23E1B1BFD1;\n\tTue, 21 Jul 2020 05:05:31 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id AC0781BFCD;\n Tue, 21 Jul 2020 05:05:29 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2020 20:05:28 -0700",
            "from ubuntu.sh.intel.com ([10.240.183.163])\n by orsmga002.jf.intel.com with ESMTP; 20 Jul 2020 20:05:26 -0700"
        ],
        "X-Mailer": "git-send-email 2.17.1",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [DPDK v3] net/e1000: add VLAN extend feature to\n\tcapability",
        "Precedence": "list",
        "Date": "Mon, 20 Jul 2020 23:05:14 -0400",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Amp-File-Uploaded": "False",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "dev@dpdk.org,\n\tPeng Zhihong <zhihongx.peng@intel.com>,\n\tstable@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "In-Reply-To": "<20200720064849.14795-1-zhihongx.peng@intel.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "To": "wei.zhao1@intel.com,\n\tjia.guo@intel.com",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Peng Zhihong <zhihongx.peng@intel.com>\n\nThe rte_eth_dev_set_vlan_offload function will check vlan rx offload\ncapability, the i350/i210/i211 nics have vlan extend feature but\nDEV_RX_OFFLOAD_VLAN_EXTEND is not set into the capability, that will\ncause setting fail. So need to add this capability in\nigb_get_rx_port_offloads_capa function.\n\nFixes: ef990fb56e55 (\"net/e1000: convert to new Rx offloads API\")\nCc: stable@dpdk.org\n\nSigned-off-by: Peng Zhihong <zhihongx.peng@intel.com>\n---\n drivers/net/e1000/igb_rxtx.c | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c\nindex 5717cdb70..6411924e0 100644\n--- a/drivers/net/e1000/igb_rxtx.c\n+++ b/drivers/net/e1000/igb_rxtx.c\n@@ -1637,8 +1637,10 @@ uint64_t\n igb_get_rx_port_offloads_capa(struct rte_eth_dev *dev)\n {\n \tuint64_t rx_offload_capa;\n+\tstruct e1000_hw *hw;\n+\n+\thw = E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n \n-\tRTE_SET_USED(dev);\n \trx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP  |\n \t\t\t  DEV_RX_OFFLOAD_VLAN_FILTER |\n \t\t\t  DEV_RX_OFFLOAD_IPV4_CKSUM  |\n@@ -1649,6 +1651,11 @@ igb_get_rx_port_offloads_capa(struct rte_eth_dev *dev)\n \t\t\t  DEV_RX_OFFLOAD_SCATTER     |\n \t\t\t  DEV_RX_OFFLOAD_RSS_HASH;\n \n+\tif (hw->mac.type == e1000_i350 ||\n+\t    hw->mac.type == e1000_i210 ||\n+\t    hw->mac.type == e1000_i211)\n+\t\trx_offload_capa |= DEV_RX_OFFLOAD_VLAN_EXTEND;\n+\n \treturn rx_offload_capa;\n }\n \n",
    "prefixes": [
        "DPDK",
        "v3"
    ]
}