virtio-net: introduce virtnet_receive()
authorJason Wang <jasowang@redhat.com>
Wed, 23 Jul 2014 08:33:54 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 22:12:01 +0000 (15:12 -0700)
commit2ffa75988fff39741e60141ce4a349e2419b41e6
tree514ca37970b5808e9a1a2f0fbdf40397a4761eba
parent96b3bff4c94cebc97726dc7f019cfc7ba3ced2e1
virtio-net: introduce virtnet_receive()

Move common receive logic to a new helper virtnet_receive(). It will
also be used by rx busy polling method.

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: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c