]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
qede: Fix multicast mac configuration
authorManish Chopra <manishc@marvell.com>
Thu, 12 Dec 2019 14:49:28 +0000 (06:49 -0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit 0af67e49b018e7280a4227bfe7b6005bc9d3e442 ]

Driver doesn't accommodate the configuration for max number
of multicast mac addresses, in such particular case it leaves
the device with improper/invalid multicast configuration state,
causing connectivity issues (in lacp bonding like scenarios).

Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/qlogic/qede/qede_filter.c

index 9a6a9a008714659acf56e93fdd7cf3d44766e3ca..c8bdbf057d5a22c73d7b98feaf062db4f58a6f3d 100644 (file)
@@ -1230,7 +1230,7 @@ qede_configure_mcast_filtering(struct net_device *ndev,
        netif_addr_lock_bh(ndev);
 
        mc_count = netdev_mc_count(ndev);
-       if (mc_count < 64) {
+       if (mc_count <= 64) {
                netdev_for_each_mc_addr(ha, ndev) {
                        ether_addr_copy(temp, ha->addr);
                        temp += ETH_ALEN;