Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91175/?format=api
http://patches.dpdk.org/api/patches/91175/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210413050640.2586033-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": "<20210413050640.2586033-3-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210413050640.2586033-3-qi.z.zhang@intel.com", "date": "2021-04-13T05:06:28", "name": "[v2,02/14] net/ice/base: support removing VSI from flow profile", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1b288ddfe8c014cbf586bdb99a45228238d95338", "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/20210413050640.2586033-3-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 16315, "url": "http://patches.dpdk.org/api/series/16315/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16315", "date": "2021-04-13T05:06:28", "name": "base code update batch 2", "version": 2, "mbox": "http://patches.dpdk.org/series/16315/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/91175/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/91175/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 69055A0524;\n\tTue, 13 Apr 2021 07:03:08 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5038E160A90;\n\tTue, 13 Apr 2021 07:03:08 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 27351160A8A\n for <dev@dpdk.org>; Tue, 13 Apr 2021 07:03:07 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Apr 2021 22:03:05 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 12 Apr 2021 22:03:04 -0700" ], "IronPort-SDR": [ "\n 2Tyr3WxKFC74tfQc7u+xUY0sBc0/B4EzHM36eyXc+3bKaU1WhTQW77xBFsFhCJdjRptXygaXgV\n h614JgFQGBnQ==", "\n 4eOSYx7WxZJb0lCbitwPObZQSNf+xqX9NYRXZIvpgAt1e4nnsA6Yaslgr/eITTdrpzjcFqSNdz\n +sD2ZG8r7Q4Q==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9952\"; a=\"279641903\"", "E=Sophos;i=\"5.82,218,1613462400\"; d=\"scan'208\";a=\"279641903\"", "E=Sophos;i=\"5.82,218,1613462400\"; d=\"scan'208\";a=\"417704630\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Vignesh Sridhar <vignesh.sridhar@intel.com>", "Date": "Tue, 13 Apr 2021 13:06:28 +0800", "Message-Id": "<20210413050640.2586033-3-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210413050640.2586033-1-qi.z.zhang@intel.com>", "References": "<20210329141411.2395069-1-qi.z.zhang@intel.com>\n <20210413050640.2586033-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 02/14] net/ice/base: support removing VSI from\n flow profile", "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": "Adding a function ice_flow_rem_vsi_prof() to remove flow entries\nassociated to the sw vsi handle. Once complete clear the vsi index from\nthe flow profile bitmap. This will ensure that the a vsi once removed\ncan be re-added and the package block rules will be added again.\n\nSigned-off-by: Vignesh Sridhar <vignesh.sridhar@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_flow.c | 55 +++++++++++++++++++++++++++++++++\n drivers/net/ice/base/ice_flow.h | 2 ++\n 2 files changed, 57 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex c12ddfa247..69156176c9 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -3295,6 +3295,61 @@ ice_flow_add_fld_raw(struct ice_flow_seg_info *seg, u16 off, u8 len,\n \tseg->raws_cnt++;\n }\n \n+/**\n+ * ice_flow_rem_vsi_prof - remove vsi from flow profile\n+ * @hw: pointer to the hardware structure\n+ * @blk: classification stage\n+ * @vsi_handle: software VSI handle\n+ * @prof_id: unique ID to identify this flow profile\n+ *\n+ * This function removes the flow entries associated to the input\n+ * vsi handle and disassociates the vsi from the flow profile.\n+ */\n+enum ice_status ice_flow_rem_vsi_prof(struct ice_hw *hw, enum ice_block blk, u16 vsi_handle,\n+\t\t\t\t u64 prof_id)\n+{\n+\tstruct ice_flow_prof *prof = NULL;\n+\tenum ice_status status = ICE_SUCCESS;\n+\n+\tif (blk >= ICE_BLK_COUNT || !ice_is_vsi_valid(hw, vsi_handle))\n+\t\treturn ICE_ERR_PARAM;\n+\n+\t/* find flow profile pointer with input package block and profile id */\n+\tprof = ice_flow_find_prof_id(hw, ICE_BLK_FD, prof_id);\n+\tif (!prof) {\n+\t\tice_debug(hw, ICE_DBG_PKG,\n+\t\t\t \"Cannot find flow profile id=%lu\\n\", prof_id);\n+\t\treturn ICE_ERR_DOES_NOT_EXIST;\n+\t}\n+\n+\t/* Remove all remaining flow entries before removing the flow profile */\n+\tif (!LIST_EMPTY(&prof->entries)) {\n+\t\tstruct ice_flow_entry *e, *t;\n+\n+\t\tice_acquire_lock(&prof->entries_lock);\n+\t\tLIST_FOR_EACH_ENTRY_SAFE(e, t, &prof->entries, ice_flow_entry,\n+\t\t\t\t\t l_entry) {\n+\t\t\tif (e->vsi_handle != vsi_handle)\n+\t\t\t\tcontinue;\n+\n+\t\t\tstatus = ice_flow_rem_entry_sync(hw, blk, e);\n+\t\t\tif (status)\n+\t\t\t\tbreak;\n+\t\t}\n+\t\tice_release_lock(&prof->entries_lock);\n+\t}\n+\tif (status)\n+\t\treturn status;\n+\n+\t/* disassociate the flow profile from sw vsi handle */\n+\tstatus = ice_flow_disassoc_prof(hw, blk, prof, vsi_handle);\n+\tif (status)\n+\t\tice_debug(hw, ICE_DBG_PKG,\n+\t\t\t \"ice_flow_disassoc_prof() failed with status=%d\\n\",\n+\t\t\t status);\n+\treturn status;\n+}\n+\n #define ICE_FLOW_RSS_SEG_HDR_L2_MASKS \\\n (ICE_FLOW_SEG_HDR_ETH | ICE_FLOW_SEG_HDR_VLAN)\n \ndiff --git a/drivers/net/ice/base/ice_flow.h b/drivers/net/ice/base/ice_flow.h\nindex af15ecb0ff..40a75f53f9 100644\n--- a/drivers/net/ice/base/ice_flow.h\n+++ b/drivers/net/ice/base/ice_flow.h\n@@ -553,6 +553,8 @@ ice_flow_set_fld_prefix(struct ice_flow_seg_info *seg, enum ice_flow_field fld,\n void\n ice_flow_add_fld_raw(struct ice_flow_seg_info *seg, u16 off, u8 len,\n \t\t u16 val_loc, u16 mask_loc);\n+enum ice_status ice_flow_rem_vsi_prof(struct ice_hw *hw, enum ice_block blk,\n+\t\t\t\t u16 vsi_handle, u64 prof_id);\n void ice_rem_vsi_rss_list(struct ice_hw *hw, u16 vsi_handle);\n enum ice_status ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle);\n enum ice_status\n", "prefixes": [ "v2", "02/14" ] }{ "id": 91175, "url": "