get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96342,
    "url": "http://patches.dpdk.org/api/patches/96342/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210728022429.237010-1-simei.su@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": "<20210728022429.237010-1-simei.su@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210728022429.237010-1-simei.su@intel.com",
    "date": "2021-07-28T02:24:29",
    "name": "net/ice: fix max entry number for ACL normal priority",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3d0b5ea48f82a4365a92fb7eb3014db5c213cd24",
    "submitter": {
        "id": 1298,
        "url": "http://patches.dpdk.org/api/people/1298/?format=api",
        "name": "Simei Su",
        "email": "simei.su@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/20210728022429.237010-1-simei.su@intel.com/mbox/",
    "series": [
        {
            "id": 18026,
            "url": "http://patches.dpdk.org/api/series/18026/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18026",
            "date": "2021-07-28T02:24:29",
            "name": "net/ice: fix max entry number for ACL normal priority",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/18026/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/96342/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/96342/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 B578FA0C40;\n\tWed, 28 Jul 2021 04:35:25 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3D8C240E64;\n\tWed, 28 Jul 2021 04:35:25 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 7C02E40142\n for <dev@dpdk.org>; Wed, 28 Jul 2021 04:35:23 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Jul 2021 19:35:19 -0700",
            "from unknown (HELO npg-dpdk-cvl-simeisu-118d193.sh.intel.com)\n ([10.67.119.195])\n by FMSMGA003.fm.intel.com with ESMTP; 27 Jul 2021 19:35:17 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10058\"; a=\"210679492\"",
            "E=Sophos;i=\"5.84,275,1620716400\"; d=\"scan'208\";a=\"210679492\"",
            "E=Sophos;i=\"5.84,275,1620716400\"; d=\"scan'208\";a=\"506224269\""
        ],
        "X-ExtLoop1": "1",
        "From": "Simei Su <simei.su@intel.com>",
        "To": "qi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, xuan.ding@intel.com, wenjun1.wu@intel.com,\n Simei Su <simei.su@intel.com>",
        "Date": "Wed, 28 Jul 2021 10:24:29 +0800",
        "Message-Id": "<20210728022429.237010-1-simei.su@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "Subject": "[dpdk-dev] [PATCH] net/ice: fix max entry number for ACL normal\n priority",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "For ACL, there are three entry priorities: LOW, NORMAL, HIGH.\nLow priority starts from the highest index, 25% of total entries;\nNormal priority starts from the highest index, 50% of total entries;\nHigh priority starts from the lowest index, 25% of total entries.\n\nEach TCAM block has 512 entries of 40 bits. Currently, there is a\nscenario in which multiple TCAM blocks are cascaded. It means the\ntotal entries are 512. The default priority is NORMAL, so the max\nentry is 256, not 512. This patch changes the max entry number for\nNORMAL priority.\n\nFixes: 40d466fa9f76 (\"net/ice: support ACL filter in DCF\")\n\nSigned-off-by: Simei Su <simei.su@intel.com>\n---\n drivers/net/ice/ice_acl_filter.c | 4 ++--\n drivers/net/ice/ice_ethdev.h     | 4 ++--\n 2 files changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c\nindex 3375609..0c15a70 100644\n--- a/drivers/net/ice/ice_acl_filter.c\n+++ b/drivers/net/ice/ice_acl_filter.c\n@@ -430,7 +430,7 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,\n \t/* For IPV4_OTHER type, should add entry for all types.\n \t * For IPV4_UDP/TCP/SCTP type, only add entry for each.\n \t */\n-\tif (slot_id < MAX_ACL_ENTRIES) {\n+\tif (slot_id < MAX_ACL_NORMAL_ENTRIES) {\n \t\tentry_id = ((uint64_t)flow_type << 32) | slot_id;\n \t\tret = ice_flow_add_entry(hw, blk, flow_type,\n \t\t\t\t\t entry_id, pf->main_vsi->idx,\n@@ -444,7 +444,7 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,\n \t\tpf->acl.hw_entry_id[slot_id] = hw_entry;\n \t} else {\n \t\tPMD_DRV_LOG(ERR, \"Exceed the maximum entry number(%d)\"\n-\t\t\t    \" HW supported!\", MAX_ACL_ENTRIES);\n+\t\t\t    \" HW supported!\", MAX_ACL_NORMAL_ENTRIES);\n \t\treturn -1;\n \t}\n \ndiff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h\nindex edafdf1..b4bf651 100644\n--- a/drivers/net/ice/ice_ethdev.h\n+++ b/drivers/net/ice/ice_ethdev.h\n@@ -50,7 +50,7 @@\n #define ICE_PKG_FILE_SEARCH_PATH_UPDATES \"/lib/firmware/updates/intel/ice/ddp/\"\n #define ICE_MAX_PKG_FILENAME_SIZE   256\n \n-#define MAX_ACL_ENTRIES    512\n+#define MAX_ACL_NORMAL_ENTRIES    256\n \n /**\n  * vlan_id is a 12 bit number.\n@@ -408,7 +408,7 @@ struct ice_acl_conf {\n struct ice_acl_info {\n \tstruct ice_acl_conf conf;\n \tstruct rte_bitmap *slots;\n-\tuint64_t hw_entry_id[MAX_ACL_ENTRIES];\n+\tuint64_t hw_entry_id[MAX_ACL_NORMAL_ENTRIES];\n };\n \n struct ice_pf {\n",
    "prefixes": []
}