Skip to content

Commit c1aa834

Browse files
Tom Herbertdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e585f23 commit c1aa834

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/net/gue.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ struct guehdr {
5959

6060
/* Private flags in the private option extension */
6161

62-
#define GUE_PFLAGS_ALL (0)
62+
#define GUE_PFLAG_REMCSUM htonl(1 << 31)
63+
#define GUE_PLEN_REMCSUM 4
64+
65+
#define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM)
6366

6467
/* Functions to compute options length corresponding to flags.
6568
* If we ever have a lot of flags this can be potentially be

0 commit comments

Comments
 (0)