History

ipvs: add checksum support for gue encapsulation

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

Jacky Hu committed 7 years ago

Commit 29930e31 parent 2cf6bff4 files · +146 −17Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/ip_vs.h+7−0
@@ -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 are140 * 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t