Skip to content
  • Jason Wang's avatar
    virtio-net: rx busy polling support · 91815639
    Jason Wang authored
    
    
    Add basic support for rx busy polling. Instead of introducing new
    states and spinlock to synchronize between NAPI and polling method,
    this patch just reuse NAPI state to avoid extra overhead for fast path
    and simplified the codes.
    
    Test was done between a kvm guest and an external host. Two hosts were
    connected through 40gb mlx4 cards. With both busy_poll and busy_read
    are set to 50 in guest, 1 byte netperf tcp_rr shows 127% improvement:
    transaction rate was increased from 8353.33 to 18966.87.
    
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Cc: Vlad Yasevich <vyasevic@redhat.com>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    91815639