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 Jun 26, 2020
1 parent 2e64fd2 commit 22946ee
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 @@ -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++;

Expand Down

0 comments on commit 22946ee

Please sign in to comment.