Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dcb373c authored by John Fastabend's avatar John Fastabend Committed by David S. Miller
Browse files

ixgbe: allow RAR table to be updated in promisc mode



This allows RAR table updates while in promiscuous. With
SR-IOV enabled it is valuable to allow the RAR table to
be updated even when in promisc mode to configure forwarding

Signed-off-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f4b0add
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -3462,6 +3462,8 @@ void ixgbe_set_rx_mode(struct net_device *netdev)
		}
		ixgbe_vlan_filter_enable(adapter);
		hw->addr_ctrl.user_set_promisc = false;
	}

	/*
	 * Write addresses to available RAR registers, if there is not
	 * sufficient space to store all the addresses then enable
@@ -3472,7 +3474,6 @@ void ixgbe_set_rx_mode(struct net_device *netdev)
		fctrl |= IXGBE_FCTRL_UPE;
		vmolr |= IXGBE_VMOLR_ROPE;
	}
	}

	if (adapter->num_vfs) {
		ixgbe_restore_vf_multicasts(adapter);