From c393ca2eacc0fa8c0cb5a7ebf77eedff00bd3415 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 bc7f6da9f..68a74608b 100644 --- a/src/ipvs/ip_vs_conn.c +++ b/src/ipvs/ip_vs_conn.c @@ -99,7 +99,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++;