get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71247,
    "url": "https://patches.dpdk.org/api/patches/71247/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200611084330.18301-9-qi.z.zhang@intel.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": "<20200611084330.18301-9-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200611084330.18301-9-qi.z.zhang@intel.com",
    "date": "2020-06-11T08:43:28",
    "name": "[08/10] net/ice/base: choose TCP dummy packet by protocol",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e7085356960f6c643b901f7c35deb0fd9f591761",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "https://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200611084330.18301-9-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 10404,
            "url": "https://patches.dpdk.org/api/series/10404/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10404",
            "date": "2020-06-11T08:43:20",
            "name": "net/ice: base code update for 20.08 batch 2",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/10404/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/71247/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/71247/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 15016A00C5;\n\tThu, 11 Jun 2020 10:40:51 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E5E1E1BEC5;\n\tThu, 11 Jun 2020 10:39:50 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 1DC351BDAE\n for <dev@dpdk.org>; Thu, 11 Jun 2020 10:39:48 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jun 2020 01:39:49 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.82])\n by orsmga004.jf.intel.com with ESMTP; 11 Jun 2020 01:39:47 -0700"
        ],
        "IronPort-SDR": [
            "\n mUPcOA8xmUp+jNPgZUcC9NhvPVo/B1c+UhCgT0tDIbawX8dgCeJBtBwojqQ5PGdeWB4KIC8Am5\n HKDhSWM2+DSw==",
            "\n h8vztkDQApH8Tbr2Paj39+1Tc0xaBrKzDuM+qh0w7P7tyYiRfUoLdao4x4f+HG0IHnoKKAXqcK\n C+9grGx+mBLw=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,499,1583222400\"; d=\"scan'208\";a=\"419039198\"",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, xiaolong.ye@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Wei Zhao <wei.zhao1@intel.com>,\n Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>",
        "Date": "Thu, 11 Jun 2020 16:43:28 +0800",
        "Message-Id": "<20200611084330.18301-9-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20200611084330.18301-1-qi.z.zhang@intel.com>",
        "References": "<20200611084330.18301-1-qi.z.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 08/10] net/ice/base: choose TCP dummy packet by\n\tprotocol",
        "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 <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": "In order to find proper dummy packets for switch filter,\nit need to check ipv4 next protocol number, if it is 0x06,\nwhich means next payload is TCP, we need to use TCP\nformat dummy packet.\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex 06d8f9c55..ee0813b52 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -13,6 +13,7 @@\n #define ICE_IPV4_NVGRE_PROTO_ID\t\t0x002F\n #define ICE_PPP_IPV6_PROTO_ID\t\t0x0057\n #define ICE_IPV6_ETHER_ID\t\t0x86DD\n+#define ICE_TCP_PROTO_ID\t\t0x06\n \n /* Dummy ethernet header needed in the ice_aqc_sw_rules_elem\n  * struct to configure any switch filter rules.\n@@ -6836,6 +6837,12 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t\t lkups[i].m_u.ethertype.ethtype_id ==\n \t\t\t\t\t0xFFFF)\n \t\t\tipv6 = true;\n+\t\telse if (lkups[i].type == ICE_IPV4_IL &&\n+\t\t\t lkups[i].h_u.ipv4_hdr.protocol ==\n+\t\t\t\tICE_TCP_PROTO_ID &&\n+\t\t\t lkups[i].m_u.ipv4_hdr.protocol ==\n+\t\t\t\t0xFF)\n+\t\t\ttcp = true;\n \t}\n \n \tif (tun_type == ICE_SW_TUN_IPV4_ESP) {\n",
    "prefixes": [
        "08/10"
    ]
}