Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183719
b: refs/heads/master
c: 1ada1b1
h: refs/heads/master
i:
  183717: 351e987
  183715: 7c81e5b
  183711: ea0c693
v: v3
  • Loading branch information
Greg Rose authored and David S. Miller committed Jan 23, 2010
1 parent 8ef0237 commit 3b5be04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 51c24aaacaea90c8e87f1dec75a2ac7622b593f8
refs/heads/master: 1ada1b1b41b0e54291aca67eed4bd42e61e7e529
6 changes: 4 additions & 2 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2432,15 +2432,17 @@ static void ixgbe_vlan_rx_add_vid(struct net_device *netdev, u16 vid)
{
struct ixgbe_adapter *adapter = netdev_priv(netdev);
struct ixgbe_hw *hw = &adapter->hw;
int pool_ndx = adapter->num_vfs;

/* add VID to filter table */
hw->mac.ops.set_vfta(&adapter->hw, vid, 0, true);
hw->mac.ops.set_vfta(&adapter->hw, vid, pool_ndx, true);
}

static void ixgbe_vlan_rx_kill_vid(struct net_device *netdev, u16 vid)
{
struct ixgbe_adapter *adapter = netdev_priv(netdev);
struct ixgbe_hw *hw = &adapter->hw;
int pool_ndx = adapter->num_vfs;

if (!test_bit(__IXGBE_DOWN, &adapter->state))
ixgbe_irq_disable(adapter);
Expand All @@ -2451,7 +2453,7 @@ static void ixgbe_vlan_rx_kill_vid(struct net_device *netdev, u16 vid)
ixgbe_irq_enable(adapter);

/* remove VID from filter table */
hw->mac.ops.set_vfta(&adapter->hw, vid, 0, false);
hw->mac.ops.set_vfta(&adapter->hw, vid, pool_ndx, false);
}

static void ixgbe_vlan_rx_register(struct net_device *netdev,
Expand Down

0 comments on commit 3b5be04

Please sign in to comment.