Add if_tunnel flag TUNNEL_ENCAP_FLAG_REMCSUM to configure remote checksum offload on an IP tunnel. Add logic in gue_build_header to insert remote checksum offload option.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -69,6 +69,7 @@ enum tunnel_encap_types { · 68 unmodified lines | |||
| 69 | 69 | ||
| 70 | #define TUNNEL_ENCAP_FLAG_CSUM (1<<0) | 70 | #define TUNNEL_ENCAP_FLAG_CSUM (1<<0) |
| 71 | #define TUNNEL_ENCAP_FLAG_CSUM6 (1<<1) | 71 | #define TUNNEL_ENCAP_FLAG_CSUM6 (1<<1) |
| 72 | #define TUNNEL_ENCAP_FLAG_REMCSUM (1<<2) | ||
| 72 | 73 | ||
| 73 | /* SIT-mode i_flags */ | 74 | /* SIT-mode i_flags */ |
| 74 | #define SIT_ISATAP 0x0001 | 75 | #define SIT_ISATAP 0x0001 |