Add checksum support for gue encapsulation with the tun_flags parameter, which could be one of the values below: IP_VS_TUNNEL_ENCAP_FLAG_NOCSUM IP_VS_TUNNEL_ENCAP_FLAG_CSUM IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -131,6 +131,11 @@ enum { · 130 unmodified lines | |||
| 131 | IP_VS_CONN_F_TUNNEL_TYPE_MAX, | 131 | IP_VS_CONN_F_TUNNEL_TYPE_MAX, |
| 132 | }; | 132 | }; |
| 133 | 133 | ||
| 134 | /* Tunnel encapsulation flags */ | ||
| 135 | #define IP_VS_TUNNEL_ENCAP_FLAG_NOCSUM (0) | ||
| 136 | #define IP_VS_TUNNEL_ENCAP_FLAG_CSUM (1 << 0) | ||
| 137 | #define IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM (1 << 1) | ||
| 138 | |||
| 134 | /* | 139 | /* |
| 135 | * The struct ip_vs_service_user and struct ip_vs_dest_user are | 140 | * The struct ip_vs_service_user and struct ip_vs_dest_user are |
| 136 | * used to set IPVS rules through setsockopt. | 141 | * used to set IPVS rules through setsockopt. |
| @@ -403,6 +408,8 @@ enum { · 266 unmodified lines | |||
| 403 | 408 | ||
| 404 | IPVS_DEST_ATTR_TUN_PORT, /* tunnel port */ | 409 | IPVS_DEST_ATTR_TUN_PORT, /* tunnel port */ |
| 405 | 410 | ||
| 411 | IPVS_DEST_ATTR_TUN_FLAGS, /* tunnel flags */ | ||
| 412 | |||
| 406 | __IPVS_DEST_ATTR_MAX, | 413 | __IPVS_DEST_ATTR_MAX, |
| 407 | }; | 414 | }; |
| 408 | 415 | ||