]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ixgbevf: Remove limit of 10 entries for unicast filter list
authorRadoslaw Tyl <radoslawx.tyl@intel.com>
Mon, 25 Nov 2019 14:24:52 +0000 (15:24 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:19 +0000 (19:03 +0100)
commit aa604651d523b1493988d0bf6710339f3ee60272 upstream.

Currently, though the FDB entry is added to VF, it does not appear in
RAR filters. VF driver only allows to add 10 entries. Attempting to add
another causes an error. This patch removes limitation and allows use of
all free RAR entries for the FDB if needed.

Fixes: 46ec20ff7d ("ixgbevf: Add macvlan support in the set rx mode op")
Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index c932436c6a478d6148b6fb0adefc3f118c07c0dc..35ab6f85a0df99e325cff0b8c63726035d9e200f 100644 (file)
@@ -1465,11 +1465,6 @@ static int ixgbevf_write_uc_addr_list(struct net_device *netdev)
        struct ixgbe_hw *hw = &adapter->hw;
        int count = 0;
 
-       if ((netdev_uc_count(netdev)) > 10) {
-               pr_err("Too many unicast filters - No Space\n");
-               return -ENOSPC;
-       }
-
        if (!netdev_uc_empty(netdev)) {
                struct netdev_hw_addr *ha;
                netdev_for_each_uc_addr(ha, netdev) {