Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194790
b: refs/heads/master
c: 7342291
h: refs/heads/master
v: v3
  • Loading branch information
Greg Rose authored and David S. Miller committed May 6, 2010
1 parent 3f1b0df commit 7aa72a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 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: 58544feb67eac49d55cc3408aea1ae42521af90d
refs/heads/master: 73422913cab53307214cd13c4fa2c11bf222c2ab
11 changes: 0 additions & 11 deletions trunk/drivers/net/ixgbe/ixgbe_sriov.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ void ixgbe_restore_vf_multicasts(struct ixgbe_adapter *adapter)

int ixgbe_set_vf_vlan(struct ixgbe_adapter *adapter, int add, int vid, u32 vf)
{
u32 ctrl;

/* Check if global VLAN already set, if not set it */
ctrl = IXGBE_READ_REG(&adapter->hw, IXGBE_VLNCTRL);
if (!(ctrl & IXGBE_VLNCTRL_VFE)) {
/* enable VLAN tag insert/strip */
ctrl |= IXGBE_VLNCTRL_VFE;
ctrl &= ~IXGBE_VLNCTRL_CFIEN;
IXGBE_WRITE_REG(&adapter->hw, IXGBE_VLNCTRL, ctrl);
}

return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add);
}

Expand Down

0 comments on commit 7aa72a5

Please sign in to comment.