From: Tom Herbert <therbert@google.com>
To: davem@davemloft.net, netdev@vger.kernel.org
Subject: [PATCH v2 net-next 5/7] gue: Protocol constants for remote checksum offload
Date: Tue, 4 Nov 2014 09:06:55 -0800 [thread overview]
Message-ID: <1415120817-2105-6-git-send-email-therbert@google.com> (raw)
In-Reply-To: <1415120817-2105-1-git-send-email-therbert@google.com>
Define a private flag for remote checksun offload as well as a length
for the option.
Signed-off-by: Tom Herbert <therbert@google.com>
---
include/net/gue.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/net/gue.h b/include/net/gue.h
index cb68ae8..3f28ec7 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
--
2.1.0.rc2.206.gedb03e5
next prev parent reply other threads:[~2014-11-04 17:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 17:06 [PATCH v2 net-next 0/7] gue: Remote checksum offload Tom Herbert
2014-11-04 17:06 ` [PATCH v2 net-next 1/7] net: Move fou_build_header into fou.c and refactor Tom Herbert
2014-11-04 17:06 ` [PATCH v2 net-next 2/7] udp: Offload outer UDP tunnel csum if available Tom Herbert
2014-11-04 17:06 ` [PATCH v2 net-next 3/7] gue: Add infrastructure for flags and options Tom Herbert
2014-11-04 17:06 ` [PATCH v2 net-next 4/7] udp: Changes to udp_offload to support remote checksum offload Tom Herbert
2014-11-04 17:06 ` Tom Herbert [this message]
2014-11-04 17:06 ` [PATCH v2 net-next 6/7] gue: TX support for using remote checksum offload option Tom Herbert
2014-11-04 17:06 ` [PATCH v2 net-next 7/7] gue: Receive side of remote checksum offload Tom Herbert
2014-11-05 21:44 ` [PATCH v2 net-next 0/7] gue: Remote " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415120817-2105-6-git-send-email-therbert@google.com \
--to=therbert@google.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).