RE: [PATCH net-next] net/mlx5: E-Switch, Size FDB peer groups for asymmetric peers

From: Uri Dar

Date: Mon Nov 23 2026 - 10:31:01 EST


> [Severity: Medium]
> In SMFS/HMFS mode, can esw_max_vports() return less than the old sizing?

No, in switchdev mode, vport match metadata enabled is the only
configuration we support (it is also the default). With metadata
enabled, esw_offloads_metadata_init() fails with -ENOSPC before the FDB
is created if there are more vports than MLX5_ESW_MAX_VPORT_ID, so the
new sizing is never smaller than the old one. We intentionally do not
support switchdev with metadata disabled.