freebsd-dev/sys/dev/cxgbe
Luigi Rizzo 4bf50f18eb 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.
2014-08-16 15:00:01 +00:00
..
common cxgbe(4): Do not poke T4-only registers on a T5 (and vice versa). 2014-08-08 18:36:53 +00:00
firmware
iw_cxgbe
tom Some hooks in cxgbe(4) for the offloaded iSCSI driver. 2014-07-24 18:39:08 +00:00
adapter.h cxgbe(4): some optimizations in freelist handling. 2014-08-02 06:55:36 +00:00
offload.h Some hooks in cxgbe(4) for the offloaded iSCSI driver. 2014-07-24 18:39:08 +00:00
osdep.h
t4_ioctl.h
t4_l2t.c
t4_l2t.h
t4_main.c cxgbe(4): Let caller specify whether it's ok to sleep in 2014-08-06 19:38:03 +00:00
t4_netmap.c Update to the current version of netmap. 2014-08-16 15:00:01 +00:00
t4_sge.c cxgbe(4): some optimizations in freelist handling. 2014-08-02 06:55:36 +00:00
t4_tracer.c