get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128908,
    "url": "http://patchwork.dpdk.org/api/patches/128908/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230622113104.261556-3-artemii.morozov@arknetworks.am/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230622113104.261556-3-artemii.morozov@arknetworks.am>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230622113104.261556-3-artemii.morozov@arknetworks.am",
    "date": "2023-06-22T11:31:02",
    "name": "[v6,2/4] common/sfc_efx/base: add API to get installed filters count",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "50ee7f52568bc9744637c55d989e59fce21bf154",
    "submitter": {
        "id": 3083,
        "url": "http://patchwork.dpdk.org/api/people/3083/?format=api",
        "name": "Artemii Morozov",
        "email": "Artemii.Morozov@arknetworks.am"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230622113104.261556-3-artemii.morozov@arknetworks.am/mbox/",
    "series": [
        {
            "id": 28613,
            "url": "http://patchwork.dpdk.org/api/series/28613/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28613",
            "date": "2023-06-22T11:31:00",
            "name": "net/sfc: support VLAN stripping offload",
            "version": 6,
            "mbox": "http://patchwork.dpdk.org/series/28613/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/128908/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/128908/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F207342D23;\n\tThu, 22 Jun 2023 13:33:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CA15A42D0B;\n\tThu, 22 Jun 2023 13:32:57 +0200 (CEST)",
            "from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80])\n by mails.dpdk.org (Postfix) with ESMTP id 65918406A2\n for <dev@dpdk.org>; Thu, 22 Jun 2023 13:32:53 +0200 (CEST)",
            "from angrod.. (unknown [141.136.90.242])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by agw.arknetworks.am (Postfix) with ESMTPSA id E90A2E123E;\n Thu, 22 Jun 2023 15:32:52 +0400 (+04)"
        ],
        "From": "Artemii Morozov <artemii.morozov@arknetworks.am>",
        "To": "dev@dpdk.org",
        "Cc": "Ivan Malov <ivan.malov@arknetworks.am>,\n Viacheslav Galaktionov <viacheslav.galaktionov@arknetworks.am>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "Subject": "[PATCH v6 2/4] common/sfc_efx/base: add API to get installed filters\n count",
        "Date": "Thu, 22 Jun 2023 15:31:02 +0400",
        "Message-Id": "<20230622113104.261556-3-artemii.morozov@arknetworks.am>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20230622113104.261556-1-artemii.morozov@arknetworks.am>",
        "References": "<20230531134122.119508-1-artemii.morozov@arknetworks.am>\n <20230622113104.261556-1-artemii.morozov@arknetworks.am>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "This API allows to get number of installed filters. This will\nbe used in the future patches.\n\nSigned-off-by: Artemii Morozov <artemii.morozov@arknetworks.am>\n---\n drivers/common/sfc_efx/base/ef10_filter.c | 20 +++++++++++++++++\n drivers/common/sfc_efx/base/ef10_impl.h   |  6 +++++\n drivers/common/sfc_efx/base/efx_filter.c  | 27 +++++++++++++++++++++++\n drivers/common/sfc_efx/base/efx_impl.h    |  7 ++++++\n 4 files changed, 60 insertions(+)",
    "diff": "diff --git a/drivers/common/sfc_efx/base/ef10_filter.c b/drivers/common/sfc_efx/base/ef10_filter.c\nindex d6940011c0..278502fb61 100644\n--- a/drivers/common/sfc_efx/base/ef10_filter.c\n+++ b/drivers/common/sfc_efx/base/ef10_filter.c\n@@ -2113,6 +2113,26 @@ ef10_filter_reconfigure(\n \treturn (rc);\n }\n \n+\t__checkReturn\tefx_rc_t\n+ef10_filter_get_count(\n+\t__in\tefx_nic_t *enp,\n+\t__out\tuint32_t *count)\n+{\n+\tef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;\n+\tuint32_t filters_count;\n+\n+\tEFSYS_ASSERT(EFX_FAMILY_IS_EF100(enp) || EFX_FAMILY_IS_EF10(enp));\n+\tEFSYS_ASSERT(count != NULL);\n+\n+\tfilters_count = table->eft_unicst_filter_count +\n+\t\t\ttable->eft_mulcst_filter_count +\n+\t\t\ttable->eft_encap_filter_count;\n+\n+\t*count = filters_count;\n+\n+\treturn (0);\n+}\n+\n \t\tvoid\n ef10_filter_get_default_rxq(\n \t__in\t\tefx_nic_t *enp,\ndiff --git a/drivers/common/sfc_efx/base/ef10_impl.h b/drivers/common/sfc_efx/base/ef10_impl.h\nindex 877aedad45..914bba10ce 100644\n--- a/drivers/common/sfc_efx/base/ef10_impl.h\n+++ b/drivers/common/sfc_efx/base/ef10_impl.h\n@@ -1347,6 +1347,12 @@ ef10_filter_reconfigure(\n \t__in_ecount(6*count)\t\tuint8_t const *addrs,\n \t__in\t\t\t\tuint32_t count);\n \n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+ef10_filter_get_count(\n+\t__in\tefx_nic_t *enp,\n+\t__out\tuint32_t *count);\n+\n LIBEFX_INTERNAL\n extern\t\tvoid\n ef10_filter_get_default_rxq(\ndiff --git a/drivers/common/sfc_efx/base/efx_filter.c b/drivers/common/sfc_efx/base/efx_filter.c\nindex 83c37ff859..a8b62ee88d 100644\n--- a/drivers/common/sfc_efx/base/efx_filter.c\n+++ b/drivers/common/sfc_efx/base/efx_filter.c\n@@ -53,6 +53,7 @@ static const efx_filter_ops_t\t__efx_filter_siena_ops = {\n \tsiena_filter_delete,\t\t/* efo_delete */\n \tsiena_filter_supported_filters,\t/* efo_supported_filters */\n \tNULL,\t\t\t\t/* efo_reconfigure */\n+\tNULL,\t\t\t\t/* efo_get_count */\n };\n #endif /* EFSYS_OPT_SIENA */\n \n@@ -65,6 +66,7 @@ static const efx_filter_ops_t\t__efx_filter_ef10_ops = {\n \tef10_filter_delete,\t\t/* efo_delete */\n \tef10_filter_supported_filters,\t/* efo_supported_filters */\n \tef10_filter_reconfigure,\t/* efo_reconfigure */\n+\tef10_filter_get_count,\t\t/* efo_get_count */\n };\n #endif /* EFX_OPTS_EF10() */\n \n@@ -77,6 +79,7 @@ static const efx_filter_ops_t\t__efx_filter_rhead_ops = {\n \tef10_filter_delete,\t\t/* efo_delete */\n \tef10_filter_supported_filters,\t/* efo_supported_filters */\n \tef10_filter_reconfigure,\t/* efo_reconfigure */\n+\tef10_filter_get_count,\t\t/* efo_get_count */\n };\n #endif /* EFSYS_OPT_RIVERHEAD */\n \n@@ -306,6 +309,30 @@ efx_filter_reconfigure(\n \n \treturn (0);\n \n+fail1:\n+\tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n+\n+\treturn (rc);\n+}\n+\n+\t__checkReturn\tefx_rc_t\n+efx_filter_get_count(\n+\t__in\tefx_nic_t *enp,\n+\t__out\tuint32_t *count)\n+{\n+\tefx_rc_t rc;\n+\n+\tEFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);\n+\tEFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);\n+\tEFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_FILTER);\n+\n+\tif (enp->en_efop->efo_get_count != NULL) {\n+\t\tif ((rc = enp->en_efop->efo_get_count(enp, count)) != 0)\n+\t\t\tgoto fail1;\n+\t}\n+\n+\treturn (0);\n+\n fail1:\n \tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n \ndiff --git a/drivers/common/sfc_efx/base/efx_impl.h b/drivers/common/sfc_efx/base/efx_impl.h\nindex 45e99d01c5..d657734bc5 100644\n--- a/drivers/common/sfc_efx/base/efx_impl.h\n+++ b/drivers/common/sfc_efx/base/efx_impl.h\n@@ -288,6 +288,7 @@ typedef struct efx_filter_ops_s {\n \tefx_rc_t\t(*efo_reconfigure)(efx_nic_t *, uint8_t const *, boolean_t,\n \t\t\t\t   boolean_t, boolean_t, boolean_t,\n \t\t\t\t   uint8_t const *, uint32_t);\n+\tefx_rc_t\t(*efo_get_count)(efx_nic_t *, uint32_t *);\n } efx_filter_ops_t;\n \n LIBEFX_INTERNAL\n@@ -302,6 +303,12 @@ efx_filter_reconfigure(\n \t__in_ecount(6*count)\t\tuint8_t const *addrs,\n \t__in\t\t\t\tuint32_t count);\n \n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+efx_filter_get_count(\n+\t__in\tefx_nic_t *enp,\n+\t__out\tuint32_t *count);\n+\n #endif /* EFSYS_OPT_FILTER */\n \n #if EFSYS_OPT_TUNNEL\n",
    "prefixes": [
        "v6",
        "2/4"
    ]
}