freebsd-skq/sys/dev/cxgbe
Alexander V. Chernikov 4fb3a8208c Implement interface link header precomputation API.
Add if_requestencap() interface method which is capable of calculating
  various link headers for given interface. Right now there is support
  for INET/INET6/ARP llheader calculation (IFENCAP_LL type request).
  Other types are planned to support more complex calculation
  (L2 multipath lagg nexthops, tunnel encap nexthops, etc..).

Reshape 'struct route' to be able to pass additional data (with is length)
  to prepend to mbuf.

These two changes permits routing code to pass pre-calculated nexthop data
  (like L2 header for route w/gateway) down to the stack eliminating the
  need for other lookups. It also brings us closer to more complex scenarios
  like transparently handling MPLS nexthops and tunnel interfaces.
  Last, but not least, it removes layering violation introduced by flowtable
  code (ro_lle) and simplifies handling of existing if_output consumers.

ARP/ND changes:
Make arp/ndp stack pre-calculate link header upon installing/updating lle
  record. Interface link address change are handled by re-calculating
  headers for all lles based on if_lladdr event. After these changes,
  arpresolve()/nd6_resolve() returns full pre-calculated header for
  supported interfaces thus simplifying if_output().
Move these lookups to separate ether_resolve_addr() function which ether
  returs error or fully-prepared link header. Add <arp|nd6_>resolve_addr()
  compat versions to return link addresses instead of pre-calculated data.

BPF changes:
Raw bpf writes occupied _two_ cases: AF_UNSPEC and pseudo_AF_HDRCMPLT.
Despite the naming, both of there have ther header "complete". The only
  difference is that interface source mac has to be filled by OS for
  AF_UNSPEC (controlled via BIOCGHDRCMPLT). This logic has to stay inside
  BPF and not pollute if_output() routines. Convert BPF to pass prepend data
  via new 'struct route' mechanism. Note that it does not change
  non-optimized if_output(): ro_prepend handling is purely optional.
Side note: hackish pseudo_AF_HDRCMPLT is supported for ethernet and FDDI.
  It is not needed for ethernet anymore. The only remaining FDDI user is
  dev/pdq mostly untouched since 2007. FDDI support was eliminated from
  OpenBSD in 2013 (sys/net/if_fddisubr.c rev 1.65).

Flowtable changes:
  Flowtable violates layering by saving (and not correctly managing)
  rtes/lles. Instead of passing lle pointer, pass pointer to pre-calculated
  header data from that lle.

Differential Revision:	https://reviews.freebsd.org/D4102
2015-12-31 05:03:27 +00:00
..
common Add support for configuring additional virtual interfaces (VIs) on a port. 2015-12-03 00:02:01 +00:00
cxgbei cxgbei: Hardware accelerated iSCSI target and initiator for TOE capable 2015-12-26 06:05:21 +00:00
firmware cxgbe/t4_tom: add a knob to the default configuration file to tune 2015-11-10 02:29:19 +00:00
iw_cxgbe Add support for configuring additional virtual interfaces (VIs) on a port. 2015-12-03 00:02:01 +00:00
tom Implement interface link header precomputation API. 2015-12-31 05:03:27 +00:00
adapter.h cxgbe(4): Updates to the base NIC driver and t4_tom to support the iSCSI 2015-12-26 00:26:02 +00:00
if_cxl.c cxgbe(4): Add a minimal if_cxl module that pulls in the real driver as 2015-02-06 01:10:04 +00:00
offload.h cxgbe(4): Updates to the base NIC driver and t4_tom to support the iSCSI 2015-12-26 00:26:02 +00:00
osdep.h Add hooks in base cxgbe(4) for the iWARP upper-layer driver. Update a 2013-08-28 20:45:45 +00:00
t4_ioctl.h cxgbe(4): T4_SET_SCHED_CLASS and T4_SET_SCHED_QUEUE ioctls to program 2013-12-03 18:34:52 +00:00
t4_l2t.c Revert r279934, r279938; this is going to be fixed in sbuf instead. 2015-03-14 13:04:39 +00:00
t4_l2t.h
t4_main.c cxgbe(4): Updates to the base NIC driver and t4_tom to support the iSCSI 2015-12-26 00:26:02 +00:00
t4_mp_ring.c Allow cxgbe(4) to be built on i386. Driver attach will succeed only on a subset 2015-01-16 01:32:40 +00:00
t4_mp_ring.h cxgbe(4): major tx rework. 2014-12-31 23:19:16 +00:00
t4_netmap.c Add support for configuring additional virtual interfaces (VIs) on a port. 2015-12-03 00:02:01 +00:00
t4_sge.c Add support for configuring additional virtual interfaces (VIs) on a port. 2015-12-03 00:02:01 +00:00
t4_tracer.c cxgbe(4): Remove stray if_up from the code that creates the tracing ifnet. 2014-05-23 01:45:44 +00:00