freebsd-dev/sys/net
Luigi Rizzo 506cc70cce 1. Fix the handling of link reset while in netmap more.
A link reset now is completely transparent for the netmap client:
   even if the NIC resets its own ring (e.g. restarting from 0),
   the client will not see any change in the current rx/tx positions,
   because the driver will keep track of the offset between the two.

2. make the device-specific code more uniform across different drivers
   There were some inconsistencies in the implementation of the netmap
   support routines, now drivers have been aligned to a common
   code structure.

3. import netmap support for ixgbe . This is implemented as a very
   small patch for ixgbe.c (233 lines, 11 chunks, mostly comments:
   in total the patch has only 54 lines of new code) , as most of
   the code is in an external file sys/dev/netmap/ixgbe_netmap.h ,
   following some initial comments from Jack Vogel about making
   changes less intrusive.
   (Note, i have emailed Jack multiple times asking if he had
   comments on this structure of the code; i got no reply so
   i assume he is fine with it).

Support for other drivers (em, lem, re, igb) will come later.

"ixgbe" is now the reference driver for netmap support. Both the
external file (sys/dev/netmap/ixgbe_netmap.h) and the device-specific
patches (in sys/dev/ixgbe/ixgbe.c) are heavily commented and should
serve as a reference for other device drivers.

Tested on i386 and amd64 with the pkt-gen program in tools/tools/netmap,
the sender does 14.88 Mpps at 1050 Mhz and 14.2 Mpps at 900 MHz
on an i7-860 with 4 cores and 82599 card. Haven't tried yet more
aggressive optimizations such as adding 'prefetch' instructions
in the time-critical parts of the code.
2011-12-05 12:06:53 +00:00
..
bpf_buffer.c
bpf_buffer.h
bpf_filter.c
bpf_jitter.c
bpf_jitter.h
bpf_zerocopy.c
bpf_zerocopy.h
bpf.c Revert r227778 in preparation for committing reworked patches in its place. 2011-11-29 12:55:26 +00:00
bpf.h Revert r227778 in preparation for committing reworked patches in its place. 2011-11-29 12:55:26 +00:00
bpfdesc.h
bridgestp.c
bridgestp.h
ethernet.h
fddi.h
firewire.h
flowtable.c
flowtable.h
ieee8023ad_lacp.c
ieee8023ad_lacp.h
if_arc.h
if_arcsubr.c
if_arp.h
if_atm.h
if_atmsubr.c
if_bridge.c In r191367 the need for if_free_type() was removed and a new member 2011-11-11 22:57:52 +00:00
if_bridgevar.h
if_clone.c - Use generic alloc_unr(9) allocator for if_clone, instead 2011-11-28 14:44:59 +00:00
if_clone.h - Use generic alloc_unr(9) allocator for if_clone, instead 2011-11-28 14:44:59 +00:00
if_dead.c
if_debug.c
if_disc.c
if_dl.h
if_edsc.c
if_ef.c
if_enc.c
if_enc.h
if_epair.c
if_ethersubr.c
if_faith.c
if_fddisubr.c
if_fwsubr.c
if_gif.c
if_gif.h
if_gre.c
if_gre.h
if_iso88025subr.c
if_lagg.c In r191367 the need for if_free_type() was removed and a new member 2011-11-11 22:57:52 +00:00
if_lagg.h
if_llatbl.c
if_llatbl.h
if_llc.h
if_loop.c
if_media.c
if_media.h
if_mib.c
if_mib.h
if_sppp.h
if_spppfr.c Remove a few bits of FreeBSD 2.x compatibility code. 2011-11-14 18:21:27 +00:00
if_spppsubr.c
if_stf.c
if_stf.h
if_tap.c In r191367 the need for if_free_type() was removed and a new member 2011-11-11 22:57:52 +00:00
if_tap.h
if_tapvar.h
if_tun.c
if_tun.h
if_types.h
if_var.h
if_vlan_var.h
if_vlan.c Change the if_vlan driver to use if_transmit for forwarding packets to the 2011-11-28 19:35:08 +00:00
if.c Improve logging: 2011-11-22 19:42:17 +00:00
if.h
iso88025.h
netisr_internal.h
netisr.c
netisr.h
netmap_user.h Bring in support for netmap, a framework for very efficient packet 2011-11-17 12:17:39 +00:00
netmap.h 1. Fix the handling of link reset while in netmap more. 2011-12-05 12:06:53 +00:00
pfil.c
pfil.h
pfkeyv2.h
ppp_defs.h
radix_mpath.c
radix_mpath.h
radix.c
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c
route.h
rtsock.c
slcompress.c
slcompress.h
vnet.c
vnet.h
zlib.c
zlib.h
zutil.h