get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81550,
    "url": "http://patches.dpdk.org/api/patches/81550/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1603185222-14831-39-git-send-email-arybchenko@solarflare.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": "<1603185222-14831-39-git-send-email-arybchenko@solarflare.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603185222-14831-39-git-send-email-arybchenko@solarflare.com",
    "date": "2020-10-20T09:13:18",
    "name": "[v2,38/62] common/sfc_efx/base: add an API for adding action DROP",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6f127b188f33d64dfc2b0df7f4a32c3d0ce520c6",
    "submitter": {
        "id": 607,
        "url": "http://patches.dpdk.org/api/people/607/?format=api",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1603185222-14831-39-git-send-email-arybchenko@solarflare.com/mbox/",
    "series": [
        {
            "id": 13137,
            "url": "http://patches.dpdk.org/api/series/13137/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13137",
            "date": "2020-10-20T09:12:44",
            "name": "net/sfc: support flow API transfer rules",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/13137/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/81550/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/81550/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 3ECA2A04DD;\n\tTue, 20 Oct 2020 11:34:15 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8F309FC6F;\n\tTue, 20 Oct 2020 11:15:39 +0200 (CEST)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 5A671C826\n for <dev@dpdk.org>; Tue, 20 Oct 2020 11:14:15 +0200 (CEST)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.65.60])\n by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id\n D01AE60086 for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:13 +0000 (UTC)",
            "from us4-mdac16-65.ut7.mdlocal (unknown [10.7.66.64])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id D0351200A0\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:13 +0000 (UTC)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.66.34])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n 576AD1C0054\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:13 +0000 (UTC)",
            "from webmail.solarflare.com (uk.solarflare.com [193.34.186.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n (No client certificate requested)\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n 0B8E360005B\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:13 +0000 (UTC)",
            "from ukex01.SolarFlarecom.com (10.17.10.4) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id\n 15.0.1497.2; Tue, 20 Oct 2020 10:14:01 +0100",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id\n 15.0.1497.2 via Frontend Transport; Tue, 20 Oct 2020 10:14:01 +0100",
            "from ukv-loginhost.uk.solarflarecom.com\n (ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 09K9E0ZE028462;\n Tue, 20 Oct 2020 10:14:00 +0100",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id DC4A11613A9;\n Tue, 20 Oct 2020 10:14:00 +0100 (BST)"
        ],
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Ivan Malov <ivan.malov@oktetlabs.ru>",
        "Date": "Tue, 20 Oct 2020 10:13:18 +0100",
        "Message-ID": "<1603185222-14831-39-git-send-email-arybchenko@solarflare.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1603185222-14831-1-git-send-email-arybchenko@solarflare.com>",
        "References": "<1603183709-23420-1-git-send-email-arybchenko@solarflare.com>\n <1603185222-14831-1-git-send-email-arybchenko@solarflare.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.6.1012-25736.003",
        "X-TM-AS-Result": "No-1.100700-8.000000-10",
        "X-TMASE-MatchedRID": "aYY/z8vMijzecSkNT7l/2W/BUkaRdR0Jas1wAJHsfyJeOpN49cSJ3Q2o\n 6ebnCAbg3Mltz09ZqJNA08Pbjdhi2R1YpEPWJiyziJwEp8weVXxSQLJ/PYofeAaYevV4zG3ZO8+\n BEoNgmT98qLeh0f6YVhXXfLCAeq/9krMo37I6x/7MbQu1fPiCD45Wj4EMKY2smyiLZetSf8mfop\n 0ytGwvXiq2rl3dzGQ1cOg+TLV4WO10Tf7IGuGYrx/0CrLQi3i2nL+X7dzMxiALyz/82ADZx+avn\n jEmI7dIIQ+gd8TOwCJrvIq+8tRwmhMk/TLr7x7bIi1e3fcsfhc4oGQUCbwY5Q+g7mdwjo656FtD\n ZCmYBJ1ty4Dch3o7okMMprcbiest",
        "X-TM-AS-User-Approved-Sender": "Yes",
        "X-TM-AS-User-Blocked-Sender": "No",
        "X-TMASE-Result": "10--1.100700-8.000000",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.6.1012-25736.003",
        "X-MDID": "1603185253-devSa806LDPH",
        "X-PPE-DISP": "1603185253;devSa806LDPH",
        "Subject": "[dpdk-dev] [PATCH v2 38/62] common/sfc_efx/base: add an API for\n\tadding action DROP",
        "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": "From: Ivan Malov <ivan.malov@oktetlabs.ru>\n\nClient drivers may need to request that matching traffic be dropped.\nAdd a dedicated API to support this. The API relies on action\nDELIVER with properly constructed NULL MPORT argument.\n\nSigned-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/common/sfc_efx/base/efx.h             |  5 +++++\n drivers/common/sfc_efx/base/efx_mae.c         | 19 +++++++++++++++++++\n .../sfc_efx/rte_common_sfc_efx_version.map    |  1 +\n 3 files changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h\nindex 96ea93f75a..4a4dc8ba4d 100644\n--- a/drivers/common/sfc_efx/base/efx.h\n+++ b/drivers/common/sfc_efx/base/efx.h\n@@ -4211,6 +4211,11 @@ efx_mae_action_set_populate_deliver(\n \t__in\t\t\t\tefx_mae_actions_t *spec,\n \t__in\t\t\t\tconst efx_mport_sel_t *mportp);\n \n+LIBEFX_API\n+extern\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_action_set_populate_drop(\n+\t__in\t\t\t\tefx_mae_actions_t *spec);\n+\n LIBEFX_API\n extern\t__checkReturn\t\t\tboolean_t\n efx_mae_action_set_specs_equal(\ndiff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c\nindex ee51f19e5e..0cfa3f6c06 100644\n--- a/drivers/common/sfc_efx/base/efx_mae.c\n+++ b/drivers/common/sfc_efx/base/efx_mae.c\n@@ -1028,6 +1028,25 @@ efx_mae_action_set_populate_deliver(\n \treturn (rc);\n }\n \n+\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_action_set_populate_drop(\n+\t__in\t\t\t\tefx_mae_actions_t *spec)\n+{\n+\tefx_mport_sel_t mport;\n+\tconst uint8_t *arg;\n+\tefx_dword_t dword;\n+\n+\tEFX_POPULATE_DWORD_1(dword,\n+\t    MAE_MPORT_SELECTOR_FLAT, MAE_MPORT_SELECTOR_NULL);\n+\n+\tmport.sel = dword.ed_u32[0];\n+\n+\targ = (const uint8_t *)&mport.sel;\n+\n+\treturn (efx_mae_action_set_spec_populate(spec,\n+\t    EFX_MAE_ACTION_DELIVER, sizeof (mport.sel), arg));\n+}\n+\n \t__checkReturn\t\t\tboolean_t\n efx_mae_action_set_specs_equal(\n \t__in\t\t\t\tconst efx_mae_actions_t *left,\ndiff --git a/drivers/common/sfc_efx/rte_common_sfc_efx_version.map b/drivers/common/sfc_efx/rte_common_sfc_efx_version.map\nindex cb92955a64..7cc692db3f 100644\n--- a/drivers/common/sfc_efx/rte_common_sfc_efx_version.map\n+++ b/drivers/common/sfc_efx/rte_common_sfc_efx_version.map\n@@ -90,6 +90,7 @@ INTERNAL {\n \tefx_mae_action_set_alloc;\n \tefx_mae_action_set_free;\n \tefx_mae_action_set_populate_deliver;\n+\tefx_mae_action_set_populate_drop;\n \tefx_mae_action_set_populate_flag;\n \tefx_mae_action_set_populate_mark;\n \tefx_mae_action_set_populate_vlan_pop;\n",
    "prefixes": [
        "v2",
        "38/62"
    ]
}