Skip to content

Commit

Permalink
ipvs: no need to zero the bytes of the newly allocated dpvs connection.
Browse files Browse the repository at this point in the history
- TCP CPS can be increased by 10% for the single core with TCP flood traffic
  sent by hping3.
  • Loading branch information
zhuangyan committed Aug 3, 2022
1 parent d38d43f commit c393ca2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ipvs/ip_vs_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit c393ca2

Please sign in to comment.