get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131341,
    "url": "http://patches.dpdk.org/api/patches/131341/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230912100041.3697012-3-qi.z.zhang@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": "<20230912100041.3697012-3-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230912100041.3697012-3-qi.z.zhang@intel.com",
    "date": "2023-09-12T10:00:38",
    "name": "[v3,2/5] net/ice: refine flow engine disabling",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "42b8ef91e1e2e2406ba09c819dd58600c0244fb5",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@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/20230912100041.3697012-3-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 29481,
            "url": "http://patches.dpdk.org/api/series/29481/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29481",
            "date": "2023-09-12T10:00:36",
            "name": "refactor rte_flow",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/29481/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/131341/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/131341/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 7705B42575;\n\tTue, 12 Sep 2023 03:40:54 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3A370402DB;\n\tTue, 12 Sep 2023 03:40:44 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 94C1E40293\n for <dev@dpdk.org>; Tue, 12 Sep 2023 03:40:40 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Sep 2023 18:40:40 -0700",
            "from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.37])\n by orsmga004.jf.intel.com with ESMTP; 11 Sep 2023 18:40:38 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1694482840; x=1726018840;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=ATB5MceJF0UcWpZPrSB/ZPsLo35NzcdRapn8pz1L42Y=;\n b=OLgejoy4kQLZ4ORLVRtJkSbHkYILJ4/jjhxbtznIfdbL+kOlKddJjSdH\n iGy8FSBhHK7/0cDbKR3FaUDNf/aclpAVhbd7vlVKZdMkcCbfv/u9WqCgF\n TBEKEUNy/FJLoYgt01LtUgKrkVQrk6PHYD2j+YQUtvikObfWCtQH1OpXU\n 95/Lgrvu2bGTD5wZr/o06u6csmOX3148S8sbJuSpzInI+GO1vRdyDRt0t\n pg9/VyuvSNS3RlB9JNuoeIhLlzrgC/nLWh4t+lLppHEjiD6t+X3cnxJlH\n VwTWNzHc+3l/ICtsXoptRQeC3vW+V0J+reYe86TY+Ks8gs4NRUTlRM6iH A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10830\"; a=\"382063144\"",
            "E=Sophos;i=\"6.02,244,1688454000\"; d=\"scan'208\";a=\"382063144\"",
            "E=McAfee;i=\"6600,9927,10830\"; a=\"867168267\"",
            "E=Sophos;i=\"6.02,244,1688454000\"; d=\"scan'208\";a=\"867168267\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "zhichaox.zeng@intel.com,\n\tdev@dpdk.org,\n\tQi Zhang <qi.z.zhang@intel.com>",
        "Subject": "[PATCH v3 2/5] net/ice: refine flow engine disabling",
        "Date": "Tue, 12 Sep 2023 06:00:38 -0400",
        "Message-Id": "<20230912100041.3697012-3-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20230912100041.3697012-1-qi.z.zhang@intel.com>",
        "References": "<20230814202616.3346652-1-qi.z.zhang@intel.com>\n <20230912100041.3697012-1-qi.z.zhang@intel.com>",
        "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": "Only use \"disable_engine_mask\" for flow engine disabling\n\nIn PF mode, only ACL engine will be disabled.\nIn DCF mode, FDIR and HASH engine will be disabled.\nIn DCF mode with \"acl=off\", ACL engine will also be\ndisabled.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/ice_acl_filter.c  | 3 ---\n drivers/net/ice/ice_dcf_parent.c  | 3 +++\n drivers/net/ice/ice_ethdev.c      | 1 +\n drivers/net/ice/ice_fdir_filter.c | 3 ---\n drivers/net/ice/ice_hash.c        | 3 ---\n 5 files changed, 4 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c\nindex f2ddbd7b9b..51f4feced4 100644\n--- a/drivers/net/ice/ice_acl_filter.c\n+++ b/drivers/net/ice/ice_acl_filter.c\n@@ -995,9 +995,6 @@ ice_acl_init(struct ice_adapter *ad)\n \tstruct ice_hw *hw = ICE_PF_TO_HW(pf);\n \tstruct ice_flow_parser *parser = &ice_acl_parser;\n \n-\tif (!ad->hw.dcf_enabled)\n-\t\treturn 0;\n-\n \tret = ice_acl_prof_alloc(hw);\n \tif (ret) {\n \t\tPMD_DRV_LOG(ERR, \"Cannot allocate memory for \"\ndiff --git a/drivers/net/ice/ice_dcf_parent.c b/drivers/net/ice/ice_dcf_parent.c\nindex ad98a531de..0a20f6b4ca 100644\n--- a/drivers/net/ice/ice_dcf_parent.c\n+++ b/drivers/net/ice/ice_dcf_parent.c\n@@ -475,6 +475,9 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)\n \tif (ice_devargs_check(eth_dev->device->devargs, ICE_DCF_DEVARG_ACL))\n \t\tparent_adapter->disabled_engine_mask |= BIT(ICE_FLOW_ENGINE_ACL);\n \n+\tparent_adapter->disabled_engine_mask |= BIT(ICE_FLOW_ENGINE_FDIR);\n+\tparent_adapter->disabled_engine_mask |= BIT(ICE_FLOW_ENGINE_HASH);\n+\n \terr = ice_flow_init(parent_adapter);\n \tif (err) {\n \t\tPMD_INIT_LOG(ERR, \"Failed to initialize flow\");\ndiff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex 036b068c22..f744bde8f4 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -2442,6 +2442,7 @@ ice_dev_init(struct rte_eth_dev *dev)\n \t}\n \n \tif (!ad->is_safe_mode) {\n+\t\tad->disabled_engine_mask |= BIT(ICE_FLOW_ENGINE_ACL);\n \t\tret = ice_flow_init(ad);\n \t\tif (ret) {\n \t\t\tPMD_INIT_LOG(ERR, \"Failed to initialize flow\");\ndiff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c\nindex e9ee5a57d6..bc43883a92 100644\n--- a/drivers/net/ice/ice_fdir_filter.c\n+++ b/drivers/net/ice/ice_fdir_filter.c\n@@ -1150,9 +1150,6 @@ ice_fdir_init(struct ice_adapter *ad)\n \tstruct ice_flow_parser *parser;\n \tint ret;\n \n-\tif (ad->hw.dcf_enabled)\n-\t\treturn 0;\n-\n \tret = ice_fdir_setup(pf);\n \tif (ret)\n \t\treturn ret;\ndiff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c\nindex e36e7da2b5..37bee808c6 100644\n--- a/drivers/net/ice/ice_hash.c\n+++ b/drivers/net/ice/ice_hash.c\n@@ -591,9 +591,6 @@ ice_hash_init(struct ice_adapter *ad)\n {\n \tstruct ice_flow_parser *parser = NULL;\n \n-\tif (ad->hw.dcf_enabled)\n-\t\treturn 0;\n-\n \tparser = &ice_hash_parser;\n \n \treturn ice_register_parser(parser, ad);\n",
    "prefixes": [
        "v3",
        "2/5"
    ]
}