freebsd-dev/sys/netinet6
Andre Oppermann 1b4381afbb Restructure the mbuf pkthdr to make it fit for upcoming capabilities and
features.  The changes in particular are:

o Remove rarely used "header" pointer and replace it with a 64bit protocol/
  layer specific union PH_loc for local use.  Protocols can flexibly overlay
  their own 8 to 64 bit fields to store information while the packet is
  worked on.

o Mechanically convert IP reassembly, IGMP/MLD and ATM to use pkthdr.PH_loc
  instead of pkthdr.header.

o Extend csum_flags to 64bits to allow for additional future offload
  information to be carried (e.g. iSCSI, IPsec offload, and others).

o Move the RSS hash type enumerator from abusing m_flags to its own 8bit
  rsstype field.  Adjust accessor macros.

o Add cosqos field to store Class of Service / Quality of Service information
  with the packet.  It is not yet supported in any drivers but allows us to
  get on par with Cisco/Juniper in routing applications (plus MPLS QoS) with
  a modernized ALTQ.

o Add four 8 bit fields l[2-5]hlen to store the relative header offsets
  from the start of the packet.  This is important for various offload
  capabilities and to relieve the drivers from having to parse the packet
  and protocol headers to find out location of checksums and other
  information.  Header parsing in drivers is a lot of copy-paste and
  unhandled corner cases which we want to avoid.

o Add another flexible 64bit union to map various additional persistent
  packet information, like ether_vtag, tso_segsz and csum fields.
  Depending on the csum_flags settings some fields may have different usage
  making it very flexible and adaptable to future capabilities.

o Restructure the CSUM flags to better signify their outbound (down the
  stack) and inbound (up the stack) use.  The CSUM flags used to be a bit
  chaotic and rather poorly documented leading to incorrect use in many
  places.  Bring clarity into their use through better naming.
  Compatibility mappings are provided to preserve the API.  The drivers
  can be corrected one by one and MFC'd without issue.

o The size of pkthdr stays the same at 48/56bytes (32/64bit architectures).

Sponsored by:	The FreeBSD Foundation
2013-08-24 19:51:18 +00:00
..
dest6.c
frag6.c
icmp6.c - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
icmp6.h
in6_cksum.c
in6_gif.c
in6_gif.h
in6_ifattach.c Fix a panic in tmpaddrtimer. 2013-08-05 00:36:12 +00:00
in6_ifattach.h
in6_mcast.c Fix an integer overflow in computing the size of a temporary buffer 2013-08-22 00:51:37 +00:00
in6_pcb.c A complete duplication of binding should be allowed if on both new and 2013-07-12 19:08:33 +00:00
in6_pcb.h
in6_pcbgroup.c
in6_proto.c Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters. 2013-07-09 09:54:54 +00:00
in6_rmx.c
in6_src.c
in6_var.h Migrate structs in6_ifstat and icmp6_ifstat to PCPU counters. 2013-07-09 09:59:46 +00:00
in6.c - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
in6.h - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
ip6_ecn.h
ip6_forward.c - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
ip6_id.c - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
ip6_input.c Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters. 2013-07-09 09:54:54 +00:00
ip6_ipsec.c
ip6_ipsec.h
ip6_mroute.c Add m_clrprotoflags() to clear protocol specific mbuf flags at up and 2013-08-19 13:27:32 +00:00
ip6_mroute.h Prepare network statistics structures for migration to PCPU counters. 2013-07-09 09:32:06 +00:00
ip6_output.c Restructure the mbuf pkthdr to make it fit for upcoming capabilities and 2013-08-24 19:51:18 +00:00
ip6_var.h Move the global M_SKIP_FIREWALL mbuf flags to a protocol layer specific 2013-08-19 11:08:36 +00:00
ip6.h
ip6protosw.h
mld6_var.h
mld6.c Restructure the mbuf pkthdr to make it fit for upcoming capabilities and 2013-08-24 19:51:18 +00:00
mld6.h
nd6_nbr.c
nd6_rtr.c - Use time_uptime instead of time_second in data structures for 2013-08-05 20:13:02 +00:00
nd6.c Add m_clrprotoflags() to clear protocol specific mbuf flags at up and 2013-08-19 13:27:32 +00:00
nd6.h
pim6_var.h Prepare network statistics structures for migration to PCPU counters. 2013-07-09 09:32:06 +00:00
pim6.h
raw_ip6.c Remove the large part of struct ipsecstat. Only few fields of this 2013-07-23 14:14:24 +00:00
raw_ip6.h Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters. 2013-07-09 09:54:54 +00:00
route6.c
scope6_var.h
scope6.c
sctp6_usrreq.c
sctp6_var.h
send.c Add m_clrprotoflags() to clear protocol specific mbuf flags at up and 2013-08-19 13:27:32 +00:00
send.h
tcp6_var.h
udp6_usrreq.c Remove the large part of struct ipsecstat. Only few fields of this 2013-07-23 14:14:24 +00:00
udp6_var.h