summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2009-01-06 12:23:19 +0000
committerrrs <rrs@FreeBSD.org>2009-01-06 12:23:19 +0000
commit1753c83c8c6ab1bac74e805732471c3d09247427 (patch)
treeae734a3913e03396c8f98014d99f80e599ec9609
parent8bff422255e003d595b727bcf2832648dfad012a (diff)
downloadFreeBSD-src-1753c83c8c6ab1bac74e805732471c3d09247427.zip
FreeBSD-src-1753c83c8c6ab1bac74e805732471c3d09247427.tar.gz
Adds flags for SCTP checksum offload. Prep
for support for new Intel NIC's that have this feature.
-rw-r--r--sys/sys/mbuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 197618e..4d7e641 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -241,11 +241,13 @@ struct mbuf {
#define CSUM_IP_FRAGS 0x0008 /* will csum IP fragments */
#define CSUM_FRAGMENT 0x0010 /* will do IP fragmentation */
#define CSUM_TSO 0x0020 /* will do TSO */
+#define CSUM_SCTP 0x0040 /* will csum SCTP */
#define CSUM_IP_CHECKED 0x0100 /* did csum IP */
#define CSUM_IP_VALID 0x0200 /* ... the csum is valid */
#define CSUM_DATA_VALID 0x0400 /* csum_data field is valid */
#define CSUM_PSEUDO_HDR 0x0800 /* csum_data has pseudo hdr */
+#define CSUM_SCTP_VALID 0x1000 /* SCTP checksum is valid */
#define CSUM_DELAY_DATA (CSUM_TCP | CSUM_UDP)
#define CSUM_DELAY_IP (CSUM_IP) /* XXX add ipv6 here too? */
OpenPOWER on IntegriCloud