提交 73829bf6 编写于 作者: D David S. Miller

Merge branch 'enic'

Govindarajulu Varadarajan says:

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

This series fixes the following problem.

Please apply this to net.
====================
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
...@@ -86,7 +86,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic) ...@@ -86,7 +86,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic)
int i; int i;
enic_rfs_timer_stop(enic); enic_rfs_timer_stop(enic);
spin_lock(&enic->rfs_h.lock); spin_lock_bh(&enic->rfs_h.lock);
enic->rfs_h.free = 0; enic->rfs_h.free = 0;
for (i = 0; i < (1 << ENIC_RFS_FLW_BITSHIFT); i++) { for (i = 0; i < (1 << ENIC_RFS_FLW_BITSHIFT); i++) {
struct hlist_head *hhead; struct hlist_head *hhead;
...@@ -100,7 +100,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic) ...@@ -100,7 +100,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic)
kfree(n); 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) struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *enic, u16 fltr_id)
...@@ -128,7 +128,7 @@ void enic_flow_may_expire(unsigned long data) ...@@ -128,7 +128,7 @@ void enic_flow_may_expire(unsigned long data)
bool res; bool res;
int j; int j;
spin_lock(&enic->rfs_h.lock); spin_lock_bh(&enic->rfs_h.lock);
for (j = 0; j < ENIC_CLSF_EXPIRE_COUNT; j++) { for (j = 0; j < ENIC_CLSF_EXPIRE_COUNT; j++) {
struct hlist_head *hhead; struct hlist_head *hhead;
struct hlist_node *tmp; struct hlist_node *tmp;
...@@ -148,7 +148,7 @@ void enic_flow_may_expire(unsigned long data) ...@@ -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); mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4);
} }
...@@ -183,7 +183,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb, ...@@ -183,7 +183,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
return -EPROTONOSUPPORT; return -EPROTONOSUPPORT;
tbl_idx = skb_get_hash_raw(skb) & ENIC_RFS_FLW_MASK; 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); n = htbl_key_search(&enic->rfs_h.ht_head[tbl_idx], &keys);
if (n) { /* entry already present */ if (n) { /* entry already present */
...@@ -277,7 +277,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb, ...@@ -277,7 +277,7 @@ int enic_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
} }
ret_unlock: ret_unlock:
spin_unlock(&enic->rfs_h.lock); spin_unlock_bh(&enic->rfs_h.lock);
return res; return res;
} }
......
...@@ -1674,13 +1674,13 @@ static int enic_stop(struct net_device *netdev) ...@@ -1674,13 +1674,13 @@ static int enic_stop(struct net_device *netdev)
enic_dev_disable(enic); enic_dev_disable(enic);
local_bh_disable();
for (i = 0; i < enic->rq_count; i++) { for (i = 0; i < enic->rq_count; i++) {
napi_disable(&enic->napi[i]); napi_disable(&enic->napi[i]);
local_bh_disable();
while (!enic_poll_lock_napi(&enic->rq[i])) while (!enic_poll_lock_napi(&enic->rq[i]))
mdelay(1); mdelay(1);
local_bh_enable();
} }
local_bh_enable();
netif_carrier_off(netdev); netif_carrier_off(netdev);
netif_tx_disable(netdev); netif_tx_disable(netdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册