]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Define and use two macros for loopback checksum offload:
authorrwatson <rwatson@FreeBSD.org>
Mon, 16 Mar 2009 10:56:50 +0000 (10:56 +0000)
committerrwatson <rwatson@FreeBSD.org>
Mon, 16 Mar 2009 10:56:50 +0000 (10:56 +0000)
commit8c380f22c829c38b8c194ea664399a44109e5ef6
tree6e50ae5fb29cbec71537219004e34666c61aec5b
parent3e5a759eb0d9a95c845df77f36597eabac99199f
Define and use two macros for loopback checksum offload:

LO_CSUM_FEATURES - a bitmask of supported transmit offload features, which
  will be stored in if_hwassist if IFCAP_TXCSUM is enabled, and be cleared
  from mbuf packet header csum flags on transmit. (1)

LO_CSUM_SET - a bitmask of supported receive offload features, which will
  be set on the mbuf packet header csum flags on transmit if IFCAP_RXCSUM
  is enabled.

While here, fix SCTP offload for loopback: offer generation on the
transmit side, don't just skip validation on the receive side.

Obtained from:  DragonflyBSD (1)
MFC after:      1 week
sys/net/if_loop.c