summaryrefslogtreecommitdiffstats
path: root/include/net/gue.h
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2014-11-04 09:06:55 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-05 16:30:03 -0500
commitc1aa8347e73e4092411fbd96cc59531fb7e76d04 (patch)
treef683f9f9888b42dbdd42f70f1b92a3fa36cc992c /include/net/gue.h
parente585f23636370320bc2071ca5ba2744ae37c3e51 (diff)
downloadlinux-c1aa8347e73e4092411fbd96cc59531fb7e76d04.tar.bz2
gue: Protocol constants for remote checksum offload
Define a private flag for remote checksun offload as well as a length for the option. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/gue.h')
-rw-r--r--include/net/gue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/gue.h b/include/net/gue.h
index cb68ae843c77..3f28ec7f1c7f 100644
--- a/include/net/gue.h
+++ b/include/net/gue.h
@@ -59,7 +59,10 @@ struct guehdr {
/* Private flags in the private option extension */
-#define GUE_PFLAGS_ALL (0)
+#define GUE_PFLAG_REMCSUM htonl(1 << 31)
+#define GUE_PLEN_REMCSUM 4
+
+#define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM)
/* Functions to compute options length corresponding to flags.
* If we ever have a lot of flags this can be potentially be