Re: [PATCH net v5 3/4] ice: resync uplink filters after a switchdev session

From: Petr Oros

Date: Mon Nov 30 2026 - 08:20:53 EST


On Sat, 28 Nov 2026 09:30:10 +0000, netdev-bot+sashiko@xxxxxxxxxx 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.