get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21249,
    "url": "https://patches.dpdk.org/api/patches/21249/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488533497-27682-5-git-send-email-beilei.xing@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": "<1488533497-27682-5-git-send-email-beilei.xing@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488533497-27682-5-git-send-email-beilei.xing@intel.com",
    "date": "2017-03-03T09:31:37",
    "name": "[dpdk-dev,4/4] net/i40e: refine consistent tunnel filter",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2f745f775ba0a2014b4f85339fbe6c6db1c0751e",
    "submitter": {
        "id": 410,
        "url": "https://patches.dpdk.org/api/people/410/?format=api",
        "name": "Xing, Beilei",
        "email": "beilei.xing@intel.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/1488533497-27682-5-git-send-email-beilei.xing@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21249/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/21249/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 3847EF610;\n\tFri,  3 Mar 2017 10:33:14 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id EF6782952\n\tfor <dev@dpdk.org>; Fri,  3 Mar 2017 10:32:55 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Mar 2017 01:32:55 -0800",
            "from unknown (HELO dpdk9.sh.intel.com) ([10.239.129.31])\n\tby fmsmga006.fm.intel.com with ESMTP; 03 Mar 2017 01:32:53 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.35,236,1484035200\"; d=\"scan'208\";a=\"72335781\"",
        "From": "Beilei Xing <beilei.xing@intel.com>",
        "To": "jingjing.wu@intel.com",
        "Cc": "helin.zhang@intel.com,\n\tdev@dpdk.org",
        "Date": "Fri,  3 Mar 2017 17:31:37 +0800",
        "Message-Id": "<1488533497-27682-5-git-send-email-beilei.xing@intel.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1488533497-27682-1-git-send-email-beilei.xing@intel.com>",
        "References": "<1488533497-27682-1-git-send-email-beilei.xing@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 4/4] net/i40e: refine consistent tunnel filter",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add i40e_tunnel_type enumeration type to refine consistent\ntunnel filter, it will be esay to add new tunnel type for\ni40e.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c |  8 ++++----\n drivers/net/i40e/i40e_ethdev.h | 18 ++++++++++++++++--\n drivers/net/i40e/i40e_flow.c   |  6 +++---\n 3 files changed, 23 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 43afd5b..91bfd73 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -6960,7 +6960,7 @@ i40e_dev_consistent_tunnel_filter_set(struct i40e_pf *pf,\n \n \tpfilter->element.inner_vlan =\n \t\trte_cpu_to_le_16(tunnel_filter->inner_vlan);\n-\tif (tunnel_filter->ip_type == RTE_TUNNEL_IPTYPE_IPV4) {\n+\tif (tunnel_filter->ip_type == I40E_TUNNEL_IPTYPE_IPV4) {\n \t\tip_type = I40E_AQC_ADD_CLOUD_FLAGS_IPV4;\n \t\tipv4_addr = rte_be_to_cpu_32(tunnel_filter->ip_addr.ipv4_addr);\n \t\trte_memcpy(&pfilter->element.ipaddr.v4.data,\n@@ -6980,13 +6980,13 @@ i40e_dev_consistent_tunnel_filter_set(struct i40e_pf *pf,\n \n \t/* check tunneled type */\n \tswitch (tunnel_filter->tunnel_type) {\n-\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\tcase I40E_TUNNEL_TYPE_VXLAN:\n \t\ttun_type = I40E_AQC_ADD_CLOUD_TNL_TYPE_VXLAN;\n \t\tbreak;\n-\tcase RTE_TUNNEL_TYPE_NVGRE:\n+\tcase I40E_TUNNEL_TYPE_NVGRE:\n \t\ttun_type = I40E_AQC_ADD_CLOUD_TNL_TYPE_NVGRE_OMAC;\n \t\tbreak;\n-\tcase RTE_TUNNEL_TYPE_IP_IN_GRE:\n+\tcase I40E_TUNNEL_TYPE_IP_IN_GRE:\n \t\ttun_type = I40E_AQC_ADD_CLOUD_TNL_TYPE_IP;\n \t\tbreak;\n \tdefault:\ndiff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h\nindex 3c8a420..3e9b129 100644\n--- a/drivers/net/i40e/i40e_ethdev.h\n+++ b/drivers/net/i40e/i40e_ethdev.h\n@@ -531,6 +531,20 @@ struct i40e_tunnel_rule {\n };\n \n /**\n+ * Tunnel type.\n+ */\n+enum i40e_tunnel_type {\n+\tI40E_TUNNEL_TYPE_NONE = 0,\n+\tI40E_TUNNEL_TYPE_VXLAN,\n+\tI40E_TUNNEL_TYPE_GENEVE,\n+\tI40E_TUNNEL_TYPE_TEREDO,\n+\tI40E_TUNNEL_TYPE_NVGRE,\n+\tI40E_TUNNEL_TYPE_IP_IN_GRE,\n+\tI40E_L2_TUNNEL_TYPE_E_TAG,\n+\tI40E_TUNNEL_TYPE_MAX,\n+};\n+\n+/**\n  * Tunneling Packet filter configuration.\n  */\n struct i40e_tunnel_filter_conf {\n@@ -538,7 +552,7 @@ struct i40e_tunnel_filter_conf {\n \tstruct ether_addr inner_mac;    /**< Inner MAC address to match. */\n \tuint16_t inner_vlan;            /**< Inner VLAN to match. */\n \tuint32_t outer_vlan;            /**< Outer VLAN to match */\n-\tenum rte_tunnel_iptype ip_type; /**< IP address type. */\n+\tenum i40e_tunnel_iptype ip_type; /**< IP address type. */\n \t/**\n \t * Outer destination IP address to match if ETH_TUNNEL_FILTER_OIP\n \t * is set in filter_type, or inner destination IP address to match\n@@ -550,7 +564,7 @@ struct i40e_tunnel_filter_conf {\n \t} ip_addr;\n \t/** Flags from ETH_TUNNEL_FILTER_XX - see above. */\n \tuint16_t filter_type;\n-\tenum rte_eth_tunnel_type tunnel_type; /**< Tunnel Type. */\n+\tenum i40e_tunnel_type tunnel_type; /**< Tunnel Type. */\n \tuint32_t tenant_id;     /**< Tenant ID to match. VNI, GRE key... */\n \tuint16_t queue_id;      /**< Queue assigned to if match. */\n \tuint8_t is_to_vf;       /**< 0 - to PF, 1 - to VF */\ndiff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c\nindex 03c7026..3e8c63a 100644\n--- a/drivers/net/i40e/i40e_flow.c\n+++ b/drivers/net/i40e/i40e_flow.c\n@@ -1324,7 +1324,7 @@ i40e_flow_parse_vxlan_pattern(__rte_unused struct rte_eth_dev *dev,\n \t\t\t}\n \t\t\tbreak;\n \t\tcase RTE_FLOW_ITEM_TYPE_IPV4:\n-\t\t\tfilter->ip_type = RTE_TUNNEL_IPTYPE_IPV4;\n+\t\t\tfilter->ip_type = I40E_TUNNEL_IPTYPE_IPV4;\n \t\t\t/* IPv4 is used to describe protocol,\n \t\t\t * spec and mask should be NULL.\n \t\t\t */\n@@ -1337,7 +1337,7 @@ i40e_flow_parse_vxlan_pattern(__rte_unused struct rte_eth_dev *dev,\n \t\t\t}\n \t\t\tbreak;\n \t\tcase RTE_FLOW_ITEM_TYPE_IPV6:\n-\t\t\tfilter->ip_type = RTE_TUNNEL_IPTYPE_IPV6;\n+\t\t\tfilter->ip_type = I40E_TUNNEL_IPTYPE_IPV6;\n \t\t\t/* IPv6 is used to describe protocol,\n \t\t\t * spec and mask should be NULL.\n \t\t\t */\n@@ -1480,7 +1480,7 @@ i40e_flow_parse_vxlan_pattern(__rte_unused struct rte_eth_dev *dev,\n \t\treturn -rte_errno;\n \t}\n \n-\tfilter->tunnel_type = RTE_TUNNEL_TYPE_VXLAN;\n+\tfilter->tunnel_type = I40E_TUNNEL_TYPE_VXLAN;\n \n \treturn 0;\n }\n",
    "prefixes": [
        "dpdk-dev",
        "4/4"
    ]
}