search for: virtnet_refill_en

Displaying 2 results from an estimated 2 matches for "virtnet_refill_en".

2011 Dec 07
1
[PATCH RFC] virtio_net: fix refill related races
...ther napi is enabled, protected by a refill_lock. */ + bool napi_enable; + + /* Lock to protect refill and napi enable/disable operations. */ + struct mutex refill_lock; }; struct skb_vnet_hdr { @@ -477,20 +487,35 @@ static void virtnet_napi_enable(struct virtnet_info *vi) } } +static void virtnet_refill_enable(struct virtnet_info *vi, bool enable) +{ + mutex_lock(&vi->refill_lock); + vi->refill_enable = enable; + mutex_unlock(&vi->refill_lock); +} + static void refill_work(struct work_struct *work) { struct virtnet_info *vi; bool still_empty; vi = container_of(work, struct...
2011 Dec 07
1
[PATCH RFC] virtio_net: fix refill related races
...ther napi is enabled, protected by a refill_lock. */ + bool napi_enable; + + /* Lock to protect refill and napi enable/disable operations. */ + struct mutex refill_lock; }; struct skb_vnet_hdr { @@ -477,20 +487,35 @@ static void virtnet_napi_enable(struct virtnet_info *vi) } } +static void virtnet_refill_enable(struct virtnet_info *vi, bool enable) +{ + mutex_lock(&vi->refill_lock); + vi->refill_enable = enable; + mutex_unlock(&vi->refill_lock); +} + static void refill_work(struct work_struct *work) { struct virtnet_info *vi; bool still_empty; vi = container_of(work, struct...