[PATCH] net/mlx5: align PF and VF/SF MAC addresses handling
Slava Ovsiienko
viacheslavo at nvidia.com
Mon May 19 13:20:49 CEST 2025
> -----Original Message-----
> From: Minggang(Gavin) Li <gavinl at nvidia.com>
> Sent: Friday, May 16, 2025 10:11 AM
> To: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; NBU-Contact-
> Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>; Dariusz Sosnowski
> <dsosnowski at nvidia.com>; Bing Zhao <bingz at nvidia.com>; Suanming Mou
> <suanmingm at nvidia.com>; NBU-Contact-N?lio Laranjeiro (EXTERNAL)
> <nelio.laranjeiro at 6wind.com>; Yongseok Koh <yskoh at mellanox.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> stable at dpdk.org
> Subject: [PATCH] net/mlx5: align PF and VF/SF MAC addresses handling
>
> In the mlx5_dev_spawn function, the Virtual Function (VF) synchronizes
> MAC addresses from the kernel using netlink. It queries the netdev-
> configured MACs and populates the list in the PMD device data, including
> multicast MAC addresses. These addresses are later used for control flow
> creation, allowing traffic for the listed MACs to be received. However, the
> Physical Function (PF) does not synchronize with the kernel and thus does
> not add any multicast MAC address rules when enabling traffic. This
> discrepancy causes the IFF_ALLMULTI ioctl code to malfunction, as it fails to
> disable all multicast traffic, leaving the VF still able to see it.
>
> To align PF and VF behavior, only unicast MAC address flows should be
> added.
>
> Fixes: 272733b5ebfd ("net/mlx5: use flow to enable unicast traffic")
> Cc: stable at dpdk.org
> Signed-off-by: Gavin Li <gavinl at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
More information about the dev
mailing list