Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340472
b: refs/heads/master
c: 55fdd45
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and Jeff Kirsher committed Oct 23, 2012
1 parent a4c7aa2 commit 76e573e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 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: 6132ee8a3f123bdaf8682ede07c17b294ecbd255
refs/heads/master: 55fdd45bcf02565b8764c0e036fa752c1f854966
40 changes: 20 additions & 20 deletions trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,12 +1138,12 @@ static int ixgbevf_vlan_rx_add_vid(struct net_device *netdev, u16 vid)
if (!hw->mac.ops.set_vfta)
return -EOPNOTSUPP;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

/* add VID to filter table */
err = hw->mac.ops.set_vfta(hw, vid, 0, true);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

/* translate error return types so error makes sense */
if (err == IXGBE_ERR_MBX)
Expand All @@ -1163,13 +1163,13 @@ static int ixgbevf_vlan_rx_kill_vid(struct net_device *netdev, u16 vid)
struct ixgbe_hw *hw = &adapter->hw;
int err = -EOPNOTSUPP;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

/* remove VID from filter table */
if (hw->mac.ops.set_vfta)
err = hw->mac.ops.set_vfta(hw, vid, 0, false);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

clear_bit(vid, adapter->active_vlans);

Expand Down Expand Up @@ -1225,15 +1225,15 @@ static void ixgbevf_set_rx_mode(struct net_device *netdev)
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
struct ixgbe_hw *hw = &adapter->hw;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

/* reprogram multicast list */
if (hw->mac.ops.update_mc_addr_list)
hw->mac.ops.update_mc_addr_list(hw, netdev);

ixgbevf_write_uc_addr_list(netdev);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);
}

static void ixgbevf_napi_enable_all(struct ixgbevf_adapter *adapter)
Expand Down Expand Up @@ -1347,7 +1347,7 @@ static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter)
ixgbe_mbox_api_unknown };
int err = 0, idx = 0;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

while (api[idx] != ixgbe_mbox_api_unknown) {
err = ixgbevf_negotiate_api_version(hw, api[idx]);
Expand All @@ -1356,7 +1356,7 @@ static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter)
idx++;
}

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);
}

static void ixgbevf_up_complete(struct ixgbevf_adapter *adapter)
Expand Down Expand Up @@ -1397,7 +1397,7 @@ static void ixgbevf_up_complete(struct ixgbevf_adapter *adapter)

ixgbevf_configure_msix(adapter);

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

if (hw->mac.ops.set_rar) {
if (is_valid_ether_addr(hw->mac.addr))
Expand All @@ -1406,7 +1406,7 @@ static void ixgbevf_up_complete(struct ixgbevf_adapter *adapter)
hw->mac.ops.set_rar(hw, 0, hw->mac.perm_addr, 0);
}

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

clear_bit(__IXGBEVF_DOWN, &adapter->state);
ixgbevf_napi_enable_all(adapter);
Expand All @@ -1430,12 +1430,12 @@ static int ixgbevf_reset_queues(struct ixgbevf_adapter *adapter)
unsigned int num_rx_queues = 1;
int err, i;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

/* fetch queue configuration from the PF */
err = ixgbevf_get_queues(hw, &num_tcs, &def_q);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

if (err)
return err;
Expand Down Expand Up @@ -1694,14 +1694,14 @@ void ixgbevf_reset(struct ixgbevf_adapter *adapter)
struct ixgbe_hw *hw = &adapter->hw;
struct net_device *netdev = adapter->netdev;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

if (hw->mac.ops.reset_hw(hw))
hw_dbg(hw, "PF still resetting\n");
else
hw->mac.ops.init_hw(hw);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

if (is_valid_ether_addr(adapter->hw.mac.addr)) {
memcpy(netdev->dev_addr, adapter->hw.mac.addr,
Expand Down Expand Up @@ -2195,12 +2195,12 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
if (hw->mac.ops.check_link) {
s32 need_reset;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

need_reset = hw->mac.ops.check_link(hw, &link_speed,
&link_up, false);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

if (need_reset) {
adapter->link_up = link_up;
Expand Down Expand Up @@ -2468,12 +2468,12 @@ static int ixgbevf_setup_queues(struct ixgbevf_adapter *adapter)
unsigned int num_rx_queues = 1;
int err, i;

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

/* fetch queue configuration from the PF */
err = ixgbevf_get_queues(hw, &num_tcs, &def_q);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

if (err)
return err;
Expand Down Expand Up @@ -3047,12 +3047,12 @@ static int ixgbevf_set_mac(struct net_device *netdev, void *p)
memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
memcpy(hw->mac.addr, addr->sa_data, netdev->addr_len);

spin_lock(&adapter->mbx_lock);
spin_lock_bh(&adapter->mbx_lock);

if (hw->mac.ops.set_rar)
hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0);

spin_unlock(&adapter->mbx_lock);
spin_unlock_bh(&adapter->mbx_lock);

return 0;
}
Expand Down

0 comments on commit 76e573e

Please sign in to comment.