From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Herbert Subject: [PATCH v2 net-next 5/7] gue: Protocol constants for remote checksum offload Date: Tue, 4 Nov 2014 09:06:55 -0800 Message-ID: <1415120817-2105-6-git-send-email-therbert@google.com> References: <1415120817-2105-1-git-send-email-therbert@google.com> To: davem@davemloft.net, netdev@vger.kernel.org Return-path: Received: from mail-ie0-f181.google.com ([209.85.223.181]:57244 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386AbaKDRHd (ORCPT ); Tue, 4 Nov 2014 12:07:33 -0500 Received: by mail-ie0-f181.google.com with SMTP id rp18so7885874iec.40 for ; Tue, 04 Nov 2014 09:07:32 -0800 (PST) In-Reply-To: <1415120817-2105-1-git-send-email-therbert@google.com> Sender: netdev-owner@vger.kernel.org List-ID: Define a private flag for remote checksun offload as well as a length for the option. Signed-off-by: Tom Herbert --- 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