lkml.org 
[lkml]   [2011]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCHv2 07/14] virtio_net: delay TX callbacks
    Ask for delayed callbacks on TX ring full, to give the
    other side more of a chance to make progress.

    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    ---
    drivers/net/virtio_net.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
    index 0cb0b06..f685324 100644
    --- a/drivers/net/virtio_net.c
    +++ b/drivers/net/virtio_net.c
    @@ -609,7 +609,7 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
    * before it gets out of hand. Naturally, this wastes entries. */
    if (capacity < 2+MAX_SKB_FRAGS) {
    netif_stop_queue(dev);
    - if (unlikely(!virtqueue_enable_cb(vi->svq))) {
    + if (unlikely(!virtqueue_enable_cb_delayed(vi->svq))) {
    /* More just got used, free them then recheck. */
    capacity += free_old_xmit_skbs(vi);
    if (capacity >= 2+MAX_SKB_FRAGS) {
    --
    1.7.5.53.gc233e


    \
     
     \ /
      Last update: 2011-05-20 01:17    [W:0.021 / U:0.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site