get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66624,
    "url": "http://patches.dpdk.org/api/patches/66624/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200313020806.21654-5-wei.zhao1@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20200313020806.21654-5-wei.zhao1@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200313020806.21654-5-wei.zhao1@intel.com",
    "date": "2020-03-13T02:08:03",
    "name": "[4/7] net/ice: add support for MAC VLAN rule",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "449dcd3983cee104dfd1a502c0bd39e31261ec77",
    "submitter": {
        "id": 495,
        "url": "http://patches.dpdk.org/api/people/495/?format=api",
        "name": "Zhao1, Wei",
        "email": "wei.zhao1@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200313020806.21654-5-wei.zhao1@intel.com/mbox/",
    "series": [
        {
            "id": 8900,
            "url": "http://patches.dpdk.org/api/series/8900/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8900",
            "date": "2020-03-13T02:07:59",
            "name": "add switch filter support for intel DCF",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8900/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66624/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/66624/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 4B185A0567;\n\tFri, 13 Mar 2020 03:29:25 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DDD941C08C;\n\tFri, 13 Mar 2020 03:28:51 +0100 (CET)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id 3BB9C1C038\n for <dev@dpdk.org>; Fri, 13 Mar 2020 03:28:48 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 12 Mar 2020 19:28:48 -0700",
            "from unknown (HELO localhost.localdomain.bj.intel.com)\n ([172.16.182.123])\n by fmsmga004.fm.intel.com with ESMTP; 12 Mar 2020 19:28:46 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,546,1574150400\"; d=\"scan'208\";a=\"266587188\"",
        "From": "Wei Zhao <wei.zhao1@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, xiaolong.ye@intel.com,\n Wei Zhao <wei.zhao1@intel.com>",
        "Date": "Fri, 13 Mar 2020 10:08:03 +0800",
        "Message-Id": "<20200313020806.21654-5-wei.zhao1@intel.com>",
        "X-Mailer": "git-send-email 2.19.1",
        "In-Reply-To": "<20200313020806.21654-1-wei.zhao1@intel.com>",
        "References": "<20200313020806.21654-1-wei.zhao1@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 4/7] net/ice: add support for MAC VLAN rule",
        "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": "This patch add support for MAC VLAN rule,\nit enable swicth filter to direct packet base on\nmac address and vlan id.\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\n---\n drivers/net/ice/ice_switch_filter.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c\nindex af7e9cb0b..20d0577b5 100644\n--- a/drivers/net/ice/ice_switch_filter.c\n+++ b/drivers/net/ice/ice_switch_filter.c\n@@ -29,6 +29,9 @@\n \n #define ICE_SW_INSET_ETHER ( \\\n \tICE_INSET_DMAC | ICE_INSET_SMAC | ICE_INSET_ETHERTYPE)\n+#define ICE_SW_INSET_MAC_VLAN ( \\\n+\t\tICE_INSET_DMAC | ICE_INSET_SMAC | ICE_INSET_ETHERTYPE | \\\n+\t\tICE_INSET_VLAN_OUTER)\n #define ICE_SW_INSET_MAC_IPV4 ( \\\n \tICE_INSET_DMAC | ICE_INSET_IPV4_DST | ICE_INSET_IPV4_SRC | \\\n \tICE_INSET_IPV4_PROTO | ICE_INSET_IPV4_TTL | ICE_INSET_IPV4_TOS)\n@@ -107,6 +110,8 @@ static struct\n ice_pattern_match_item ice_switch_pattern_dist_comms[] = {\n \t{pattern_ethertype,\n \t\t\tICE_SW_INSET_ETHER, ICE_INSET_NONE},\n+\t{pattern_ethertype_vlan,\n+\t\t\tICE_SW_INSET_MAC_VLAN, ICE_INSET_NONE},\n \t{pattern_eth_ipv4,\n \t\t\tICE_SW_INSET_MAC_IPV4, ICE_INSET_NONE},\n \t{pattern_eth_ipv4_udp,\n@@ -149,6 +154,8 @@ static struct\n ice_pattern_match_item ice_switch_pattern_dist_os[] = {\n \t{pattern_ethertype,\n \t\t\tICE_SW_INSET_ETHER, ICE_INSET_NONE},\n+\t{pattern_ethertype_vlan,\n+\t\t\tICE_SW_INSET_MAC_VLAN, ICE_INSET_NONE},\n \t{pattern_eth_arp,\n \t\t\tICE_INSET_NONE, ICE_INSET_NONE},\n \t{pattern_eth_ipv4,\n@@ -179,6 +186,8 @@ ice_pattern_match_item ice_switch_pattern_dist_os[] = {\n \n static struct\n ice_pattern_match_item ice_switch_pattern_perm[] = {\n+\t{pattern_ethertype_vlan,\n+\t\t\tICE_SW_INSET_MAC_VLAN, ICE_INSET_NONE},\n \t{pattern_eth_ipv4,\n \t\t\tICE_SW_INSET_MAC_IPV4, ICE_INSET_NONE},\n \t{pattern_eth_ipv4_udp,\n",
    "prefixes": [
        "4/7"
    ]
}