提交 9dcb373c 编写于 作者: J John Fastabend 提交者: 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: NJohn Fastabend <john.r.fastabend@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0f4b0add
...@@ -3462,6 +3462,8 @@ void ixgbe_set_rx_mode(struct net_device *netdev) ...@@ -3462,6 +3462,8 @@ 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 * Write addresses to available RAR registers, if there is not
* sufficient space to store all the addresses then enable * sufficient space to store all the addresses then enable
...@@ -3472,7 +3474,6 @@ void ixgbe_set_rx_mode(struct net_device *netdev) ...@@ -3472,7 +3474,6 @@ void ixgbe_set_rx_mode(struct net_device *netdev)
fctrl |= IXGBE_FCTRL_UPE; fctrl |= IXGBE_FCTRL_UPE;
vmolr |= IXGBE_VMOLR_ROPE; vmolr |= IXGBE_VMOLR_ROPE;
} }
}
if (adapter->num_vfs) { if (adapter->num_vfs) {
ixgbe_restore_vf_multicasts(adapter); ixgbe_restore_vf_multicasts(adapter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册