]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update to the current version of netmap.
authorluigi <luigi@FreeBSD.org>
Sat, 16 Aug 2014 15:00:01 +0000 (15:00 +0000)
committerluigi <luigi@FreeBSD.org>
Sat, 16 Aug 2014 15:00:01 +0000 (15:00 +0000)
commit3ab69a246b2953d9e21457065faaacbd84b85dd1
treeb8905a8b2a1b9580e15423ac4c896941707cd692
parentf01a1ba088f3c7bcafcd3e036ecd639283492642
Update to the current version of netmap.
Mostly bugfixes or features developed in the past 6 months,
so this is a 10.1 candidate.

Basically no user API changes (some bugfixes in sys/net/netmap_user.h).

In detail:

1. netmap support for virtio-net, including in netmap mode.
  Under bhyve and with a netmap backend [2] we reach over 1Mpps
  with standard APIs (e.g. libpcap), and 5-8 Mpps in netmap mode.

2. (kernel) add support for multiple memory allocators, so we can
  better partition physical and virtual interfaces giving access
  to separate users. The most visible effect is one additional
  argument to the various kernel functions to compute buffer
  addresses. All netmap-supported drivers are affected, but changes
  are mechanical and trivial

3. (kernel) simplify the prototype for *txsync() and *rxsync()
  driver methods. All netmap drivers affected, changes mostly mechanical.

4. add support for netmap-monitor ports. Think of it as a mirroring
  port on a physical switch: a netmap monitor port replicates traffic
  present on the main port. Restrictions apply. Drive carefully.

5. if_lem.c: support for various paravirtualization features,
  experimental and disabled by default.
  Most of these are described in our ANCS'13 paper [1].
  Paravirtualized support in netmap mode is new, and beats the
  numbers in the paper by a large factor (under qemu-kvm,
  we measured gues-host throughput up to 10-12 Mpps).

A lot of refactoring and additional documentation in the files
in sys/dev/netmap, but apart from #2 and #3 above, almost nothing
of this stuff is visible to other kernel parts.

Example programs in tools/tools/netmap have been updated with bugfixes
and to support more of the existing features.

This is meant to go into 10.1 so we plan an MFC before the Aug.22 deadline.

A lot of this code has been contributed by my colleagues at UNIPI,
including Giuseppe Lettieri, Vincenzo Maffione, Stefano Garzarella.

MFC after: 3 days.
29 files changed:
sys/conf/files
sys/dev/cxgbe/t4_netmap.c
sys/dev/e1000/if_em.c
sys/dev/e1000/if_igb.c
sys/dev/e1000/if_lem.c
sys/dev/ixgbe/ixgbe.c
sys/dev/netmap/if_em_netmap.h
sys/dev/netmap/if_igb_netmap.h
sys/dev/netmap/if_lem_netmap.h
sys/dev/netmap/if_re_netmap.h
sys/dev/netmap/if_vtnet_netmap.h [new file with mode: 0644]
sys/dev/netmap/ixgbe_netmap.h
sys/dev/netmap/netmap.c
sys/dev/netmap/netmap_freebsd.c
sys/dev/netmap/netmap_generic.c
sys/dev/netmap/netmap_kern.h
sys/dev/netmap/netmap_mbq.h
sys/dev/netmap/netmap_mem2.c
sys/dev/netmap/netmap_mem2.h
sys/dev/netmap/netmap_monitor.c [new file with mode: 0644]
sys/dev/netmap/netmap_offloadings.c
sys/dev/netmap/netmap_pipe.c
sys/dev/netmap/netmap_vale.c
sys/dev/virtio/network/if_vtnet.c
sys/net/netmap.h
sys/net/netmap_user.h
sys/net/paravirt.h [new file with mode: 0644]
tools/tools/netmap/pkt-gen.c
tools/tools/netmap/vale-ctl.c