Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91263/?format=api
http://patches.dpdk.org/api/patches/91263/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-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": "<20210413143038.2621294-3-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210413143038.2621294-3-qi.z.zhang@intel.com", "date": "2021-04-13T14:30:26", "name": "[v3,02/14] net/ice/base: support removing VSI from flow profile", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ca69dcd5105e9486c2fe72b7746d5279d957d802", "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/20210413143038.2621294-3-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 16337, "url": "http://patches.dpdk.org/api/series/16337/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16337", "date": "2021-04-13T14:30:24", "name": "ice: base code update batch 2", "version": 3, "mbox": "http://patches.dpdk.org/series/16337/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/91263/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/91263/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 54FB3A0524;\n\tTue, 13 Apr 2021 16:27:09 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D3978161048;\n\tTue, 13 Apr 2021 16:27:00 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 46E1316103E\n for <dev@dpdk.org>; Tue, 13 Apr 2021 16:26:59 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2021 07:26:58 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 13 Apr 2021 07:26:56 -0700" ], "IronPort-SDR": [ "\n X99+b0DzfvgUMWHflKTHU6jXnFNxEYZb1TIR1R4VfjUpmDdMqsdb+qjvW8M3tq9zwVM9jxOGho\n 5e5Zmesp1YCQ==", "\n Ft3xkTFbI3az8/L/Kc34RIXT0bNMFfaWISG2RehKqteM5snz/nP+9Zr52xUBx5DvgZmMvuvdLL\n Kzar0GxI5H6Q==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9953\"; a=\"214904195\"", "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"214904195\"", "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"417875116\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Vignesh Sridhar <vignesh.sridhar@intel.com>", "Date": "Tue, 13 Apr 2021 22:30:26 +0800", "Message-Id": "<20210413143038.2621294-3-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210413143038.2621294-1-qi.z.zhang@intel.com>", "References": "<20210329141411.2395069-1-qi.z.zhang@intel.com>\n <20210413143038.2621294-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 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>\nAcked-by: Qiming Yang <qiming.yang@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..e462a8c542 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=%\" PRIu64 \"\\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": [ "v3", "02/14" ] }{ "id": 91263, "url": "