Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys define M_CSUM_BLANK, eventually to be used by xennet...



details:   https://anonhg.NetBSD.org/src/rev/197b6beba4b5
branches:  trunk
changeset: 1008935:197b6beba4b5
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Apr 06 09:32:54 2020 +0000

description:
define M_CSUM_BLANK, eventually to be used by xennet(4)/xvif(4) to offload
checksums to NIC hw

diffstat:

 sys/sys/mbuf.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0d78adc12e10 -r 197b6beba4b5 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Mon Apr 06 09:24:49 2020 +0000
+++ b/sys/sys/mbuf.h    Mon Apr 06 09:32:54 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.226 2020/03/15 23:14:41 thorpej Exp $       */
+/*     $NetBSD: mbuf.h,v 1.227 2020/04/06 09:32:54 jdolecek Exp $      */
 
 /*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -218,6 +218,7 @@
 #define M_CSUM_TSOv6           0x00000200      /* TCPv6 segmentation offload */
 
 /* Checksum-assist quirks: keep separate from jump-table bits. */
+#define M_CSUM_BLANK           0x40000000      /* csum is missing */
 #define M_CSUM_NO_PSEUDOHDR    0x80000000      /* Rx csum_data does not include
                                                 * the UDP/TCP pseudo-hdr, and
                                                 * is not yet 1s-complemented.
@@ -225,7 +226,7 @@
 
 #define M_CSUM_BITS \
     "\20\1TCPv4\2UDPv4\3TCP_UDP_BAD\4DATA\5TCPv6\6UDPv6\7IPv4\10IPv4_BAD" \
-    "\11TSOv4\12TSOv6\40NO_PSEUDOHDR"
+    "\11TSOv4\12TSOv6\39BLANK\40NO_PSEUDOHDR"
 
 /*
  * Macros for manipulating csum_data on outgoing packets. These are



Home | Main Index | Thread Index | Old Index