Skip to content

Commit

Permalink
gue: Protocol constants for remote checksum offload
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Herbert authored and David S. Miller committed Nov 5, 2014
1 parent e585f23 commit c1aa834
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/net/gue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1aa834

Please sign in to comment.