From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3F51545B14 for ; Fri, 11 Oct 2024 18:45:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F66940611; Fri, 11 Oct 2024 18:45:23 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id A00FB4065D; Fri, 11 Oct 2024 18:45:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728665122; x=1760201122; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zZQaw70R50exR1I8q8N3Cl/mkStxCb6k1mONmHtkWR8=; b=HSwQGZzCO7yLLG8HobK0+oIaggRGwz4ZRl5EMiYl4R7CO4thOG7c6WW/ A5UzC+iwasV3xsxJMP4vNaSAsNkFwNW00VGKOwoS84QrNOIhMsovrOlnc 7t5poDOIaDlzynduhs2b2772Q+K+vO9RY5bUUqsjCGFV/FTsyNVohRfFo wrt+7bgjMSsi7bBRut2NB0kJMszKjTwty5/n1G1in2++Rbiw/u+nBG6ly 0WvpMFyg11/Fowhcdr+eogHUUd4+0GiPLhuxknKhC/WJWyXcdgkgN9shB iGkuK4iebfs1zSletvUI8/yHX9USdSVzPF9Zb4kZUpndzHdIZ3Ojhcwud w==; X-CSE-ConnectionGUID: ZM2i7/d7T46A1zB7TX8YAw== X-CSE-MsgGUID: rxgeKMnGTFWavcmUtrFY/A== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="53477055" X-IronPort-AV: E=Sophos;i="6.11,196,1725346800"; d="scan'208";a="53477055" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2024 09:45:21 -0700 X-CSE-ConnectionGUID: ghkKkqisTVeXl9o76UTCow== X-CSE-MsgGUID: xLypvrA/Q967kxIlS2jzDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,196,1725346800"; d="scan'208";a="76609306" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 11 Oct 2024 09:45:20 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Dave Ertman , stable@dpdk.org, Jacob Keller , Bruce Richardson Subject: [PATCH 3/9] net/ice/base: fix VLAN replay after reset Date: Fri, 11 Oct 2024 17:44:53 +0100 Message-ID: <20241011164459.1987538-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241011164459.1987538-1-bruce.richardson@intel.com> References: <20241011164459.1987538-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Dave Ertman If there is more than one VLAN defined when any reset that affects the PF is initiated, after the reset rebuild, no traffic will pass on any VLAN but the last one created. This is caused by the iteration though the VLANs during replay each clearing the vsi_map bitmap of the VSI that is being replayed. The problem is that during the replay, the pointer to the vsi_map bitmap is used by each successive vlan to determine if it should be replayed on this VSI. The logic was that the replay of the VLAN would replace the bit in the map before the next VLAN would iterate through. But, since the replay copies the old bitmap pointer to filt_replay_rules and creates a new one for the recreated VLANS, it does not do this, and leaves the old bitmap broken to be used to replay the remaining VLANs. Since the old bitmap will be cleaned up in post replay cleanup, there is no need to alter it and break following VLAN replay, so don't clear the bit. Fixes: c7dd15931183 ("net/ice/base: add virtual switch code") Cc: stable@dpdk.org Signed-off-by: Dave Ertman Signed-off-by: Jacob Keller Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_switch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 96ef26d535..a3786961e6 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -10110,8 +10110,6 @@ ice_replay_vsi_fltr(struct ice_hw *hw, struct ice_port_info *pi, if (!itr->vsi_list_info || !ice_is_bit_set(itr->vsi_list_info->vsi_map, vsi_handle)) continue; - /* Clearing it so that the logic can add it back */ - ice_clear_bit(vsi_handle, itr->vsi_list_info->vsi_map); f_entry.fltr_info.vsi_handle = vsi_handle; f_entry.fltr_info.fltr_act = ICE_FWD_TO_VSI; /* update the src in case it is VSI num */ -- 2.43.0