From 22946eeaa6409a7ed689ea0cf2cf1c41b45931cf Mon Sep 17 00:00:00 2001 From: zhuangyan Date: Fri, 26 Jun 2020 18:22:35 +0800 Subject: [PATCH] ipvs: no need to zero the bytes of the newly allocated dpvs connection. - TCP CPS can be increased by 10% for the single core with TCP flood traffic sent by hping3. --- src/ipvs/ip_vs_conn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ipvs/ip_vs_conn.c b/src/ipvs/ip_vs_conn.c index 8cd94af13..9f94c3d77 100644 --- a/src/ipvs/ip_vs_conn.c +++ b/src/ipvs/ip_vs_conn.c @@ -98,7 +98,6 @@ static struct dp_vs_conn *dp_vs_conn_alloc(enum dpvs_fwd_mode fwdmode, return NULL; } - memset(conn, 0, sizeof(struct dp_vs_conn)); conn->connpool = this_conn_cache; this_conn_count++;