get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55236,
    "url": "http://patches.dpdk.org/api/patches/55236/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190624061508.58235-4-qiming.yang@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": "<20190624061508.58235-4-qiming.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190624061508.58235-4-qiming.yang@intel.com",
    "date": "2019-06-24T06:15:08",
    "name": "[v6,3/3] net/ice: add UDP tunnel port support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3c33b6d5343967dffddbb24721e34198054de49b",
    "submitter": {
        "id": 522,
        "url": "http://patches.dpdk.org/api/people/522/?format=api",
        "name": "Yang, Qiming",
        "email": "qiming.yang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190624061508.58235-4-qiming.yang@intel.com/mbox/",
    "series": [
        {
            "id": 5128,
            "url": "http://patches.dpdk.org/api/series/5128/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5128",
            "date": "2019-06-24T06:15:05",
            "name": "Enable rte_flow API in ice driver",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/5128/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55236/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55236/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Qiming Yang <qiming.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Amp-File-Uploaded": "False",
        "References": "<1559552722-8970-1-git-send-email-qiming.yang@intel.com>\n\t<20190624061508.58235-1-qiming.yang@intel.com>",
        "In-Reply-To": "<20190624061508.58235-1-qiming.yang@intel.com>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.9.5",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 07FCC1BF6E;\n\tMon, 24 Jun 2019 08:17:17 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 740B61BF48\n\tfor <dev@dpdk.org>; Mon, 24 Jun 2019 08:17:04 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Jun 2019 23:17:02 -0700",
            "from map1.sh.intel.com ([10.67.111.124])\n\tby fmsmga004.fm.intel.com with ESMTP; 23 Jun 2019 23:17:02 -0700"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,411,1557212400\"; d=\"scan'208\";a=\"184032141\"",
        "Subject": "[dpdk-dev] [PATCH v6 3/3] net/ice: add UDP tunnel port support",
        "Date": "Mon, 24 Jun 2019 14:15:08 +0800",
        "Message-Id": "<20190624061508.58235-4-qiming.yang@intel.com>",
        "Cc": "Qiming Yang <qiming.yang@intel.com>",
        "Precedence": "list"
    },
    "content": "Enabled UDP tunnel port add and delete functions.\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/ice_ethdev.c | 54 ++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 54 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex 8ee06d1..949d293 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -88,6 +88,10 @@ static int ice_dev_filter_ctrl(struct rte_eth_dev *dev,\n \t\t\tenum rte_filter_type filter_type,\n \t\t\tenum rte_filter_op filter_op,\n \t\t\tvoid *arg);\n+static int ice_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n+static int ice_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\tstruct rte_eth_udp_tunnel *udp_tunnel);\n \n static const struct rte_pci_id pci_id_ice_map[] = {\n \t{ RTE_PCI_DEVICE(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_BACKPLANE) },\n@@ -147,6 +151,8 @@ static const struct eth_dev_ops ice_eth_dev_ops = {\n \t.xstats_get_names             = ice_xstats_get_names,\n \t.xstats_reset                 = ice_stats_reset,\n \t.filter_ctrl                  = ice_dev_filter_ctrl,\n+\t.udp_tunnel_port_add          = ice_dev_udp_tunnel_port_add,\n+\t.udp_tunnel_port_del          = ice_dev_udp_tunnel_port_del,\n };\n \n /* store statistics names and its offset in stats structure */\n@@ -3665,6 +3671,54 @@ ice_dev_filter_ctrl(struct rte_eth_dev *dev,\n \treturn ret;\n }\n \n+/* Add UDP tunneling port */\n+static int\n+ice_dev_udp_tunnel_port_add(struct rte_eth_dev *dev,\n+\t\t\t     struct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tint ret = 0;\n+\tstruct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\tif (udp_tunnel == NULL)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\t\tret = ice_create_tunnel(hw, TNL_VXLAN, udp_tunnel->udp_port);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -1;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n+/* Delete UDP tunneling port */\n+static int\n+ice_dev_udp_tunnel_port_del(struct rte_eth_dev *dev,\n+\t\t\t     struct rte_eth_udp_tunnel *udp_tunnel)\n+{\n+\tint ret = 0;\n+\tstruct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\tif (udp_tunnel == NULL)\n+\t\treturn -EINVAL;\n+\n+\tswitch (udp_tunnel->prot_type) {\n+\tcase RTE_TUNNEL_TYPE_VXLAN:\n+\t\tret = ice_destroy_tunnel(hw, udp_tunnel->udp_port, 0);\n+\t\tbreak;\n+\tdefault:\n+\t\tPMD_DRV_LOG(ERR, \"Invalid tunnel type\");\n+\t\tret = -1;\n+\t\tbreak;\n+\t}\n+\n+\treturn ret;\n+}\n+\n static int\n ice_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t      struct rte_pci_device *pci_dev)\n",
    "prefixes": [
        "v6",
        "3/3"
    ]
}