All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH v4 0/6] XDP for virtio_net
@ 2016-12-02 20:49 John Fastabend
  2016-12-02 20:49 ` [net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO John Fastabend
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: John Fastabend @ 2016-12-02 20:49 UTC (permalink / raw)
  To: daniel, mst, shm, davem, tgraf, alexei.starovoitov
  Cc: john.r.fastabend, netdev, bblanco, john.fastabend, brouer

This implements virtio_net for the mergeable buffers and big_packet
modes. I tested this with vhost_net running on qemu and did not see
any issues. For testing num_buf > 1 I added a hack to vhost driver
to only use 100 bytes per buffer so that packets were pushed across
multiple buffers.

There are some restrictions for XDP to be enabled and work well
(see patch 3) for more details.

  1. LRO must be off
  2. MTU must be less than PAGE_SIZE
  3. queues must be available to dedicate to XDP
  4. num_bufs received in mergeable buffers must be 1
  5. big_packet mode must have all data on single page

Please review any comments/feedback welcome as always.

---

John Fastabend (6):
      net: virtio dynamically disable/enable LRO
      net: xdp: add invalid buffer warning
      virtio_net: Add XDP support
      virtio_net: add dedicated XDP transmit queues
      virtio_net: add XDP_TX support
      virtio_net: xdp, add slowpath case for non contiguous buffers


 drivers/net/virtio_net.c |  376 +++++++++++++++++++++++++++++++++++++++++++++-
 include/linux/filter.h   |    1 
 net/core/filter.c        |    6 +
 3 files changed, 377 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-12-04 19:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02 20:49 [net-next PATCH v4 0/6] XDP for virtio_net John Fastabend
2016-12-02 20:49 ` [net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO John Fastabend
2016-12-04  4:01   ` David Miller
2016-12-04  5:36   ` Michael S. Tsirkin
2016-12-04 18:59     ` John Fastabend
2016-12-02 20:50 ` [net-next PATCH v4 2/6] net: xdp: add invalid buffer warning John Fastabend
2016-12-02 20:50 ` [net-next PATCH v4 3/6] virtio_net: Add XDP support John Fastabend
2016-12-02 20:50 ` [net-next PATCH v4 4/6] virtio_net: add dedicated XDP transmit queues John Fastabend
2016-12-02 20:51 ` [net-next PATCH v4 5/6] virtio_net: add XDP_TX support John Fastabend
2016-12-03  3:10   ` John Fastabend
2016-12-02 20:51 ` [net-next PATCH v4 6/6] virtio_net: xdp, add slowpath case for non contiguous buffers John Fastabend

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.