From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796044844; b=GNEPpd2BPyrzPckyBnk2HlaFunKBKIxHt4uV6o3kIieQjqNxbPabUw9iIJYXa+dkOH4L Vhw9RMFr30sf6NuKRJO4q5Z9DXNJRQnufC6Nl3ZwUmXBZpeR+YnggD0327/94xW60FZ3e 0dsnl6s/1fOLGlGzJwJTqFUfiEfns729iOsobsn5WZmVA4meOAh1yWGMLD2q82JeLjBoJ dHeg5reLSai+YIpybAFQxxOXTeFunbJjuGyZWnI2SFYBn4TLhftR0d9iW2n+qd2sNOwj4 a3fiHwODe3vwk4QncI9gQlZucUHP4KJE4+E58gttaAb9Y8IFVNZpE0VCsc+5OpyAULg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044844; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Scanned-By; bh=iSBqRIJ8VqTzdDGRlYAIjYJ2cauBSrCZ3ZFT07PnA3I=; b=xNFco0GAPK6udnA5tqi4fnxcwus+/UecUrEYvftCEPRvWOkm+EYIRhGFkp79xGS0TpAw 1Y+ygXhMcqHUCHCtsJY/jtnKMSAEZ06ED5v30ME2dVNnzvx4mxQFnI7ErUNZ2A7KoazEA PwqlDSTOIfliRxRnbWnXD6c02hr/4NNz+Pq3X70z1WMxYF1bsQi2OSYGOzE184wUE/jI/ mO/LNn9LoAabWyGzc8cevQ1LUFziE85W0RpDLThsKFj96rUj9JYu720LzgObnUJKqBmgL S779hif3uSDbQJ8Qvt5Xv1gE0M9FbuPOM8AGHOZjErHk0r9nz34pmfFpYjCmmxEIIgg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="VvmYGP/j"; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CD44606A31C for ; Mon, 30 Nov 2026 13:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7CD44606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VvmYGP/j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796044843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iSBqRIJ8VqTzdDGRlYAIjYJ2cauBSrCZ3ZFT07PnA3I=; b=VvmYGP/jT22rJJ78ahIX3PJxtoKcrikwx2QJ5dhEVFfREWkHOYAmPeHN4HUH3dpi4MRdSX CxoJaEzruGI+s1W/MiDdkqbuD7zN/FUAIbmq+vWfwWlj7khDawkhLxW7LZnzRqiQY35/YT 67qYx3QY/+xieaktwbyQyI2dOYzFUKo= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-60-gtctHlRfM8q8-nRHEoXGAw-1; Mon, 30 Nov 2026 13:20:38 +0000 X-MC-Unique: gtctHlRfM8q8-nRHEoXGAw-1 X-Mimecast-MFC-AGG-ID: gtctHlRfM8q8-nRHEoXGAw_1796044835 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 110311802571; Mon, 30 Nov 2026 13:20:35 +0000 (UTC) Received: from poros-thinkpadp16vgen1.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EBB7C1956086; Mon, 30 Nov 2026 13:20:27 +0000 (UTC) From: Petr Oros To: netdev-bot+sashiko@kernel.org Cc: Petr Oros , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Przemek Kitszel , Andrew Lunn , Aleksandr Loktionov , Simon Horman , Michal Swiatkowski , Grzegorz Nitka , Paul Menzel , Wojciech Drewek , Marcin Szycik , Martyna Szapar-Mudlaw , Ivan Vecera , Alice Michael , Jacob Keller , Jesse Brandeburg , Patryk Holda , Rinitha S , Aaron Ma , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v5 3/4] ice: resync uplink filters after a switchdev session Date: Mon, 30 Nov 2026 14:20:06 +0100 Message-ID: <20261130132009.1176908-3-poros@redhat.com> In-Reply-To: <179585821029.3135.15212524449373068553@kernel.org> References: <20261127085714.1207361-4-poros@redhat.com> <179585821029.3135.15212524449373068553@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 On Sat, 28 Nov 2026 09:30:10 +0000, netdev-bot+sashiko@kernel.org wrote: > - [Medium] The end-of-session uplink resync is not retried if its promisc > step fails. Right, and the same holds for every failed promisc step of any VSI since commit e94d44786693 ("ice: Implement filter sync, NDO operations and bump version"), because the service task skips a VSI that has only ICE_VSI_PROMISC_CHANGED set. The next rx mode change retries it. Without this patch a promiscuous uplink got 0 of 20 unknown unicast frames after a session, with it 20 of 20. > - [Medium] The patch adds two more open-coded `while > (test_and_set_bit(ICE_CFG_BUSY, vsi->state)) usleep_range(1000,… The new sections have to exclude ice_vsi_sync_fltr(), and ICE_CFG_BUSY is what it and the VLAN ndos already use for that. Replacing the bit with a mutex for all its users is a cleanup for net-next. > - [Medium] When a session ends, the uplink's primary unicast MAC filter > is rebuilt for port_info->mac.perm_addr, not for netdev->dev_addr, and… Right, and it is older than the series. ice_eswitch_release_env() has added back the permanent address since commit 1a1c40df2e80 ("ice: set and release switchdev environment"). With a MAC address set on the PF before a session the E810-C receives 0 of 20 frames to it after the session, with and without the series. The v6 message names it as not fixed. > - [Low] The commit message does not say that this patch needs the earlier > patch in the series, "ice: stop the service task before the PF is… Right, v6 says it. > - [Low] In ice_vsi_sync_fltr(), the ICE_VSI_ESWITCH_UPLINK gate sits > after the uc/mc MAC-list sync, and ice_eswitch_resync_uplink() leaves… Right. v6 drops a pending filter sync when a session starts. After a PF reset of a session with one VF and the uplink down, v5 had 2 more MAC rules on the uplink than without the series, and v6 has none. > - [Low] A promiscuous VSI that already holds the DFLT Rx rule never has > VLAN pruning turned off. For a promiscuous netdev ice_cfg_vlan_pruning() does not turn pruning on, so it stays off as ice_eswitch_setup_env() left it. After a promiscuous session the E810-C with the series receives unknown unicast on a VLAN the PF is not a member of 20 of 20 times. > - [Low] The new comment in ice_eswitch_disable_switchdev(), "after > is_running is cleared, so no rx mode change is lost", assumes… Right for weakly ordered CPUs. v6 adds an smp_mb() before the is_running test in ice_set_rx_mode(), paired with the test_and_set_bit() in ice_eswitch_resync_uplink(). An x86 host has not shown the difference. The sashiko.dev review of this patch, which went to intel-wired-lan only, raised one more point. > - [High] ice: ice_vsi_sync_fltr() re-adds uplink MAC filters during > switchdev Every session that starts with the uplink up does that since commit 44ba608db509 ("ice: do switchdev slow-path Rx using PF VSI"), through the sync that ice_up() queues in ice_eswitch_setup_env(). On the E810-C the uplink had 4 MAC rules during such a session, on base9 and on v6a alike. This patch does not change it, and the v6 change above removes the one case v5 had added.