Displaying 6 results from an estimated 6 matches for "kick_xmit".
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 6/13] [Mostly resend] virtio additions
...put buffers, and max we've ever had. */
+ unsigned int out_num, out_max;
+
/* Receive & send queues. */
struct sk_buff_head recv;
struct sk_buff_head send;
@@ -223,6 +230,20 @@ static void free_old_xmit_skbs(struct virtnet_info *vi)
}
}
+static enum hrtimer_restart kick_xmit(struct hrtimer *t)
+{
+ struct virtnet_info *vi = container_of(t,struct virtnet_info,tx_timer);
+
+ BUG_ON(!in_softirq());
+ BUG_ON(in_irq());
+ netif_tx_lock(vi->dev);
+ vi->svq->vq_ops->kick(vi->svq);
+ vi->out_num = 0;
+ netif_tx_unlock(vi->dev);
+
+...
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 6/13] [Mostly resend] virtio additions
...put buffers, and max we've ever had. */
+ unsigned int out_num, out_max;
+
/* Receive & send queues. */
struct sk_buff_head recv;
struct sk_buff_head send;
@@ -223,6 +230,20 @@ static void free_old_xmit_skbs(struct virtnet_info *vi)
}
}
+static enum hrtimer_restart kick_xmit(struct hrtimer *t)
+{
+ struct virtnet_info *vi = container_of(t,struct virtnet_info,tx_timer);
+
+ BUG_ON(!in_softirq());
+ BUG_ON(in_irq());
+ netif_tx_lock(vi->dev);
+ vi->svq->vq_ops->kick(vi->svq);
+ vi->out_num = 0;
+ netif_tx_unlock(vi->dev);
+
+...
2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
...(struct virtio_device *vdev)
netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight);
vi->dev = dev;
vi->vdev = vdev;
+ memset(&vi->tx_timer, 0, sizeof(vi->tx_timer));
hrtimer_init(&vi->tx_timer, CLOCK_REALTIME, HRTIMER_MODE_REL);
vi->tx_timer.function = kick_xmit;
- vi->tx_timer.cb_mode = HRTIMER_CB_SOFTIRQ;
vi->out_max = -1U;
tasklet_init(&vi->xmit_free, xmit_free, (unsigned long)vi);
2008 Jan 03
1
[PATCH] Use memset(0) instead of setting cb_mode explicitly
...(struct virtio_device *vdev)
netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight);
vi->dev = dev;
vi->vdev = vdev;
+ memset(&vi->tx_timer, 0, sizeof(vi->tx_timer));
hrtimer_init(&vi->tx_timer, CLOCK_REALTIME, HRTIMER_MODE_REL);
vi->tx_timer.function = kick_xmit;
- vi->tx_timer.cb_mode = HRTIMER_CB_SOFTIRQ;
vi->out_max = -1U;
tasklet_init(&vi->xmit_free, xmit_free, (unsigned long)vi);
2007 Nov 18
3
[PATCH 1/2] virtio: fix net driver loop case where we fail to restart
skb is only NULL the first time around: it's more correct to test for
being under-budget.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
diff -r 2a94425ac7d5 drivers/net/virtio_net.c
--- a/drivers/net/virtio_net.c Thu Nov 15 13:47:28 2007 +1100
+++ b/drivers/net/virtio_net.c Thu Nov 15 23:10:44 2007 +1100
@@ -198,8 +198,8 @@ again:
if (vi->num < vi->max / 2)
2007 Nov 18
3
[PATCH 1/2] virtio: fix net driver loop case where we fail to restart
skb is only NULL the first time around: it's more correct to test for
being under-budget.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
diff -r 2a94425ac7d5 drivers/net/virtio_net.c
--- a/drivers/net/virtio_net.c Thu Nov 15 13:47:28 2007 +1100
+++ b/drivers/net/virtio_net.c Thu Nov 15 23:10:44 2007 +1100
@@ -198,8 +198,8 @@ again:
if (vi->num < vi->max / 2)