• Rusty Russell's avatar
    virtio_net: fix oom handling on tx · 58eba97d
    Rusty Russell authored
    virtio net will never try to overflow the TX ring, so the only reason
    add_buf may fail is out of memory. Thus, we can not stop the
    device until some request completes - there's no guarantee anything
    at all is outstanding.
    
    Make the error message clearer as well: error here does not
    indicate queue full.
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (...and avoid TX_BUSY)
    Cc: stable@kernel.org  # .34.x (s/virtqueue_/vi->svq->vq_ops->/)
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    58eba97d
virtio_net.c 27.3 KB