Skip to content

Commit

Permalink
Merge branch 'enic'
Browse files Browse the repository at this point in the history
Govindarajulu Varadarajan says:

====================
enic: Bug fixes

This series fixes the following problem.

Please apply this to net.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 21, 2014
2 parents d10845f + 39dc90c commit 73829bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions drivers/net/ethernet/cisco/enic/enic_clsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic)
int i;

enic_rfs_timer_stop(enic);
spin_lock(&enic->rfs_h.lock);
spin_lock_bh(&enic->rfs_h.lock);
enic->rfs_h.free = 0;
for (i = 0; i < (1 << ENIC_RFS_FLW_BITSHIFT); i++) {
struct hlist_head *hhead;
Expand All @@ -100,7 +100,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic)
kfree(n);
}
}
spin_unlock(&enic->rfs_h.lock);
spin_unlock_bh(&enic->rfs_h.lock);
}

struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *enic, u16 fltr_id)
Expand Down Expand Up @@ -128,7 +128,7 @@ void enic_flow_may_expire(unsigned long data)
bool res;
int j;

spin_lock(&enic->rfs_h.lock);
spin_lock_bh(&enic->rfs_h.lock);
for (j = 0; j < ENIC_CLSF_EXPIRE_COUNT; j++) {
struct hlist_head *hhead;
struct hlist_node *tmp;
Expand All @@ -148,7 +148,7 @@ void enic_flow_may_expire(unsigned long data)
}
}
}
spin_unlock(&enic->rfs_h.lock);
spin_unlock_bh(&enic->rfs_h.lock);
mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4);
}

Expand Down Expand Up @@ -183,7 +183,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
return -EPROTONOSUPPORT;

tbl_idx = skb_get_hash_raw(skb) & ENIC_RFS_FLW_MASK;
spin_lock(&enic->rfs_h.lock);
spin_lock_bh(&enic->rfs_h.lock);
n = htbl_key_search(&enic->rfs_h.ht_head[tbl_idx], &keys);

if (n) { /* entry already present */
Expand Down Expand Up @@ -277,7 +277,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
}

ret_unlock:
spin_unlock(&enic->rfs_h.lock);
spin_unlock_bh(&enic->rfs_h.lock);
return res;
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/net/ethernet/cisco/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1674,13 +1674,13 @@ static int enic_stop(struct net_device *netdev)

enic_dev_disable(enic);

local_bh_disable();
for (i = 0; i < enic->rq_count; i++) {
napi_disable(&enic->napi[i]);
local_bh_disable();
while (!enic_poll_lock_napi(&enic->rq[i]))
mdelay(1);
local_bh_enable();
}
local_bh_enable();

netif_carrier_off(netdev);
netif_tx_disable(netdev);
Expand Down

0 comments on commit 73829bf

Please sign in to comment.