From: Qi Zhang <qi.z.zhang@intel.com> To: ferruh.yigit@intel.com Cc: xiaolong.ye@intel.com, qiming.yang@intel.com, dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>, stable@dpdk.org, Wei Zhao <wei.zhao1@intel.com>, "Paul M . Stillwell Jr" <paul.m.stillwell.jr@intel.com> Subject: [dpdk-stable] [PATCH v3 47/53] net/ice/base: fix reference count when update VSI list Date: Mon, 15 Jun 2020 10:05:09 +0800 Message-ID: <20200615020515.1359-48-qi.z.zhang@intel.com> (raw) In-Reply-To: <20200615020515.1359-1-qi.z.zhang@intel.com> The parameter ref_cnt is used for tracking how many rules are reusing this VSI list, so it can only be updated when a rule which using this list be deleted. Fixes: f89aa3affa9e ("net/ice/base: support removing advanced rule") Cc: stable@dpdk.org Signed-off-by: Wei Zhao <wei.zhao1@intel.com> Signed-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 84102368b..9c7e55ff9 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -7488,6 +7488,7 @@ ice_adv_rem_update_vsi_list(struct ice_hw *hw, u16 vsi_handle, tmp_fltr.fwd_id.hw_vsi_id, status); return status; } + fm_list->vsi_list_info->ref_cnt--; /* Remove the VSI list since it is no longer used */ status = ice_remove_vsi_list_rule(hw, vsi_list_id, lkup_type); @@ -7566,7 +7567,6 @@ ice_rem_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, if (list_elem->rule_info.sw_act.fltr_act != ICE_FWD_TO_VSI_LIST) { remove_rule = true; } else if (list_elem->vsi_count > 1) { - list_elem->vsi_list_info->ref_cnt--; remove_rule = false; vsi_handle = rinfo->sw_act.vsi_handle; status = ice_adv_rem_update_vsi_list(hw, vsi_handle, list_elem); -- 2.13.6
next prev parent reply other threads:[~2020-06-15 2:03 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20200603024016.30636-1-qi.z.zhang@intel.com> 2020-06-03 2:39 ` [dpdk-stable] [PATCH 10/52] net/ice/base: fix variable type for ACL Qi Zhang 2020-06-03 2:40 ` [dpdk-stable] [PATCH 37/52] net/ice/base: fix for memory leak Qi Zhang 2020-06-03 2:40 ` [dpdk-stable] [PATCH 47/52] net/ice/base: fix reference count when update VSI list Qi Zhang 2020-06-03 2:40 ` [dpdk-stable] [PATCH 49/52] net/ice/base: fix uninitialized flag Qi Zhang 2020-06-08 2:51 ` Yang, Qiming [not found] ` <20200609120001.35110-1-qi.z.zhang@intel.com> 2020-06-09 11:59 ` [dpdk-stable] [PATCH v2 10/52] net/ice/base: fix variable type for ACL Qi Zhang 2020-06-11 18:35 ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit 2020-06-09 11:59 ` [dpdk-stable] [PATCH v2 37/52] net/ice/base: fix for memory leak Qi Zhang 2020-06-09 11:59 ` [dpdk-stable] [PATCH v2 47/52] net/ice/base: fix reference count when update VSI list Qi Zhang 2020-06-09 11:59 ` [dpdk-stable] [PATCH v2 49/52] net/ice/base: fix uninitialized flag Qi Zhang 2020-06-11 18:45 ` Ferruh Yigit [not found] ` <20200615015342.1191-1-qi.z.zhang@intel.com> 2020-06-15 1:52 ` [dpdk-stable] [PATCH v3 10/53] net/ice/base: fix variable type for ACL Qi Zhang 2020-06-15 1:53 ` [dpdk-stable] [PATCH v3 35/53] net/ice/base: fix return value Qi Zhang 2020-06-15 1:53 ` [dpdk-stable] [PATCH v3 37/53] net/ice/base: fix for memory leak Qi Zhang 2020-06-15 1:53 ` [dpdk-stable] [PATCH v3 47/53] net/ice/base: fix reference count when update VSI list Qi Zhang 2020-06-15 1:53 ` [dpdk-stable] [PATCH v3 49/53] net/ice/base: fix uninitialized flag for result index bitmap Qi Zhang [not found] ` <20200615020515.1359-1-qi.z.zhang@intel.com> 2020-06-15 2:04 ` [dpdk-stable] [PATCH v3 10/53] net/ice/base: fix variable type for ACL Qi Zhang 2020-06-15 2:04 ` [dpdk-stable] [PATCH v3 35/53] net/ice/base: fix return value Qi Zhang 2020-06-15 2:04 ` [dpdk-stable] [PATCH v3 37/53] net/ice/base: fix for memory leak Qi Zhang 2020-06-15 2:05 ` Qi Zhang [this message] 2020-06-15 2:05 ` [dpdk-stable] [PATCH v3 49/53] net/ice/base: fix uninitialized flag for result index bitmap Qi Zhang
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200615020515.1359-48-qi.z.zhang@intel.com \ --to=qi.z.zhang@intel.com \ --cc=dev@dpdk.org \ --cc=ferruh.yigit@intel.com \ --cc=paul.m.stillwell.jr@intel.com \ --cc=qiming.yang@intel.com \ --cc=stable@dpdk.org \ --cc=wei.zhao1@intel.com \ --cc=xiaolong.ye@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
patches for DPDK stable branches This inbox may be cloned and mirrored by anyone: git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \ stable@dpdk.org public-inbox-index stable Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.stable AGPL code for this site: git clone https://public-inbox.org/public-inbox.git