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

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
...@@ -3462,16 +3462,17 @@ void ixgbe_set_rx_mode(struct net_device *netdev) ...@@ -3462,16 +3462,17 @@ void ixgbe_set_rx_mode(struct net_device *netdev)
} }
ixgbe_vlan_filter_enable(adapter); ixgbe_vlan_filter_enable(adapter);
hw->addr_ctrl.user_set_promisc = false; 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 /*
* unicast promiscuous mode * Write addresses to available RAR registers, if there is not
*/ * sufficient space to store all the addresses then enable
count = ixgbe_write_uc_addr_list(netdev); * unicast promiscuous mode
if (count < 0) { */
fctrl |= IXGBE_FCTRL_UPE; count = ixgbe_write_uc_addr_list(netdev);
vmolr |= IXGBE_VMOLR_ROPE; if (count < 0) {
} fctrl |= IXGBE_FCTRL_UPE;
vmolr |= IXGBE_VMOLR_ROPE;
} }
if (adapter->num_vfs) { if (adapter->num_vfs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment