summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ip_vs.h
diff options
context:
space:
mode:
authorJacky Hu2019-05-30 02:16:40 +0200
committerPablo Neira Ayuso2019-05-31 18:23:52 +0200
commit29930e314da3833437a2ddc7b17f6a954f38d8fb (patch)
treef4ec353c3385e71db7a3519be918c473fdcb2b79 /include/uapi/linux/ip_vs.h
parentnetfilter: replace skb_make_writable with skb_ensure_writable (diff)
downloadkernel-qcow2-linux-29930e314da3833437a2ddc7b17f6a954f38d8fb.tar.gz
kernel-qcow2-linux-29930e314da3833437a2ddc7b17f6a954f38d8fb.tar.xz
kernel-qcow2-linux-29930e314da3833437a2ddc7b17f6a954f38d8fb.zip
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 Signed-off-by: Jacky Hu <hengqing.hu@gmail.com> Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi/linux/ip_vs.h')
-rw-r--r--include/uapi/linux/ip_vs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/ip_vs.h b/include/uapi/linux/ip_vs.h
index e34f436fc79d..e4f18061a4fd 100644
--- a/include/uapi/linux/ip_vs.h
+++ b/include/uapi/linux/ip_vs.h
@@ -131,6 +131,11 @@ enum {
IP_VS_CONN_F_TUNNEL_TYPE_MAX,
};
+/* Tunnel encapsulation flags */
+#define IP_VS_TUNNEL_ENCAP_FLAG_NOCSUM (0)
+#define IP_VS_TUNNEL_ENCAP_FLAG_CSUM (1 << 0)
+#define IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM (1 << 1)
+
/*
* The struct ip_vs_service_user and struct ip_vs_dest_user are
* used to set IPVS rules through setsockopt.
@@ -403,6 +408,8 @@ enum {
IPVS_DEST_ATTR_TUN_PORT, /* tunnel port */
+ IPVS_DEST_ATTR_TUN_FLAGS, /* tunnel flags */
+
__IPVS_DEST_ATTR_MAX,
};