|
@@ -5799,11 +5799,22 @@ static int igb_set_vf_mac(struct igb_adapter *adapter,
|
|
|
static void igb_vmm_control(struct igb_adapter *adapter)
|
|
|
{
|
|
|
struct e1000_hw *hw = &adapter->hw;
|
|
|
+ u32 reg;
|
|
|
|
|
|
/* replication is not supported for 82575 */
|
|
|
if (hw->mac.type == e1000_82575)
|
|
|
return;
|
|
|
|
|
|
+ /* enable replication vlan tag stripping */
|
|
|
+ reg = rd32(E1000_RPLOLR);
|
|
|
+ reg |= E1000_RPLOLR_STRVLAN;
|
|
|
+ wr32(E1000_RPLOLR, reg);
|
|
|
+
|
|
|
+ /* notify HW that the MAC is adding vlan tags */
|
|
|
+ reg = rd32(E1000_DTXCTL);
|
|
|
+ reg |= E1000_DTXCTL_VLAN_ADDED;
|
|
|
+ wr32(E1000_DTXCTL, reg);
|
|
|
+
|
|
|
if (adapter->vfs_allocated_count) {
|
|
|
igb_vmdq_set_loopback_pf(hw, true);
|
|
|
igb_vmdq_set_replication_pf(hw, true);
|