Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193763
b: refs/heads/master
c: 52a1dd4
h: refs/heads/master
i:
  193761: 6c13590
  193759: bac3af5
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Mar 23, 2010
1 parent 4310bc9 commit 426dccb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 411f557c3accbaa1e2b378d29aeaffffbec39ccc
refs/heads/master: 52a1dd4d15cc28da5d3e9bfb1526c314d65fdff8
28 changes: 16 additions & 12 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6137,19 +6137,23 @@ 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)
switch (hw->mac.type) {
case e1000_82575:
default:
/* replication is not supported for 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);
case e1000_82576:
/* notify HW that the MAC is adding vlan tags */
reg = rd32(E1000_DTXCTL);
reg |= E1000_DTXCTL_VLAN_ADDED;
wr32(E1000_DTXCTL, reg);
case e1000_82580:
/* enable replication vlan tag stripping */
reg = rd32(E1000_RPLOLR);
reg |= E1000_RPLOLR_STRVLAN;
wr32(E1000_RPLOLR, reg);
break;
}

if (adapter->vfs_allocated_count) {
igb_vmdq_set_loopback_pf(hw, true);
Expand Down

0 comments on commit 426dccb

Please sign in to comment.