search for: packet_pages_hiwater

Displaying 8 results from an estimated 8 matches for "packet_pages_hiwater".

2011 Jun 06
3
[PATCH 1/3] Staging: hv: netvsc: Fix a bug in accounting transmit slots
...context */ struct hv_device *device_ctx; - unsigned long avail; + atomic_t avail; struct delayed_work dwork; }; @@ -118,8 +119,9 @@ static void netvsc_xmit_completion(void *context) dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + atomic_add(num_pages, &net_device_ctx->avail); + if (atomic_read(&net_device_ctx->avail) >= + PACKET_PAGES_HIWATER) netif_wake_queue(net); } } @@ -133,7 +135,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) /* Add 1 for skb->data...
2011 Jun 06
3
[PATCH 1/3] Staging: hv: netvsc: Fix a bug in accounting transmit slots
...context */ struct hv_device *device_ctx; - unsigned long avail; + atomic_t avail; struct delayed_work dwork; }; @@ -118,8 +119,9 @@ static void netvsc_xmit_completion(void *context) dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + atomic_add(num_pages, &net_device_ctx->avail); + if (atomic_read(&net_device_ctx->avail) >= + PACKET_PAGES_HIWATER) netif_wake_queue(net); } } @@ -133,7 +135,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) /* Add 1 for skb->data...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_device_context *net_device_obj = netdev_priv(net); unsigned int num_pages = skb_shinfo(skb)->nr_frags + 2; dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + net_device_obj->avail += num_pages; + if (net_device_obj->avail >= PACKET_PAGES_HIWATER) netif_wake_queue(net); } } static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) { - struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_devi...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_device_context *net_device_obj = netdev_priv(net); unsigned int num_pages = skb_shinfo(skb)->nr_frags + 2; dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + net_device_obj->avail += num_pages; + if (net_device_obj->avail >= PACKET_PAGES_HIWATER) netif_wake_queue(net); } } static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) { - struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_devi...
2011 Jun 17
7
[PATCH 1/5] staging: hv: fix some white spaces in netvsc driver
...drv.c index b339acc..8380fe9 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -122,7 +122,7 @@ static void netvsc_xmit_completion(void *context) atomic_add(num_pages, &net_device_ctx->avail); if (atomic_read(&net_device_ctx->avail) >= PACKET_PAGES_HIWATER) - netif_wake_queue(net); + netif_wake_queue(net); } } -- 1.6.3.2
2011 Jun 17
7
[PATCH 1/5] staging: hv: fix some white spaces in netvsc driver
...drv.c index b339acc..8380fe9 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -122,7 +122,7 @@ static void netvsc_xmit_completion(void *context) atomic_add(num_pages, &net_device_ctx->avail); if (atomic_read(&net_device_ctx->avail) >= PACKET_PAGES_HIWATER) - netif_wake_queue(net); + netif_wake_queue(net); } } -- 1.6.3.2
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_device_context *net_hyperv_dev = netdev_priv(net); unsigned int num_pages = skb_shinfo(skb)->nr_frags + 2; dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + net_hyperv_dev->avail += num_pages; + if (net_hyperv_dev->avail >= PACKET_PAGES_HIWATER) netif_wake_queue(net); } } static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) { - struct net_device_context *net_device_ctx = netdev_priv(net); - struct driver_c...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...struct net_device_context *net_device_ctx = netdev_priv(net); + struct net_device_context *net_hyperv_dev = netdev_priv(net); unsigned int num_pages = skb_shinfo(skb)->nr_frags + 2; dev_kfree_skb_any(skb); - net_device_ctx->avail += num_pages; - if (net_device_ctx->avail >= PACKET_PAGES_HIWATER) + net_hyperv_dev->avail += num_pages; + if (net_hyperv_dev->avail >= PACKET_PAGES_HIWATER) netif_wake_queue(net); } } static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) { - struct net_device_context *net_device_ctx = netdev_priv(net); - struct driver_c...