Skip to content

Commit 2f9be16

Browse files
Alexander DuyckJeff Kirsher
authored andcommitted
ixgbe: Allow FDB entries access to more RAR filters
This change makes it so that we allow the PF to make use of all free RAR entries for FDB use if needed. Previously the code limited us to 16 unicast entries, however this was shared between MACVLAN which wasn't limited and the FDB code which was. So instead of treating the FDB code as a second class citizen I have updated it so that it has access to just as many entries as the MACVLAN filters. Signed-off-by: Alexander Duyck <[email protected]> Tested-by: Darin Miller <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 0f079d2 commit 2f9be16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8200,7 +8200,10 @@ static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
82008200
{
82018201
/* guarantee we can provide a unique filter for the unicast address */
82028202
if (is_unicast_ether_addr(addr) || is_link_local_ether_addr(addr)) {
8203-
if (IXGBE_MAX_PF_MACVLANS <= netdev_uc_count(dev))
8203+
struct ixgbe_adapter *adapter = netdev_priv(dev);
8204+
u16 pool = VMDQ_P(0);
8205+
8206+
if (netdev_uc_count(dev) >= ixgbe_available_rars(adapter, pool))
82048207
return -ENOMEM;
82058208
}
82068209

0 commit comments

Comments
 (0)