[PATCH] net/bonding: fix bond4 drop valid MAC packets

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Sun Nov 6 12:01:46 CET 2022


On 10/19/22 06:32, Huisong Li wrote:
> Currently, by default, bond4 will first try to enable allmulti and
> then enable promiscuous if fail to enable allmulti. On reception,
> whether unicast and multicast packets should be dropped depends on
> which mode has been enabled on the bonding interface.
> 
> In fact, if MAC address of packets in mac_addrs array of bonding
> interface, these packets should not be dropped. However, now only
> check the default MAC address, which will cause the packets with
> MAC added by the '.mac_addr_add' are dropped.
> 
> Fixes: 68218b87c184 ("net/bonding: prefer allmulti to promiscuous for LACP")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Huisong Li <lihuisong at huawei.com>

Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>

Applied to dpdk-next-net/main, thanks.




More information about the dev mailing list