[PATCH v6 2/5] net/mlx5: remove redundant MAC address index checks

Dariusz Sosnowski dsosnowski at nvidia.com
Fri Sep 11 10:36:23 CEST 2026


On Tue, Sep 08, 2026 at 11:27:40AM +0200, David Marchand wrote:
> On the net/mlx5 side, mlx5_mac.c validates that any MAC address and its
> index is valid before calling the OS specific helpers.
> So those OS helpers do not have to validate again the index.
> 
> Cascading this consideration, validating the MAC index against
> MLX5_MAX_MAC_ADDRESSES in common code is also redundant.
> The common code only deals with netlink, remove any index concern.
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>


More information about the dev mailing list