Re: [PATCH v2] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-29 Thread Jakub Kicinski
On Tue, 29 Sep 2020 16:18:11 +0800 longguang.yue wrote: > @@ -411,10 +413,17 @@ struct ip_vs_conn *ip_vs_conn_out_get(const struct > ip_vs_conn_param *p) > rcu_read_lock(); > > hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[hash], c_list) { > - if (p->vport == cp->cport &&

[PATCH v2] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-29 Thread longguang.yue
It's ipvs's duty to do traffic statistic if packets get hit, no matter what mode it is. Signed-off-by: longguang.yue --- net/netfilter/ipvs/ip_vs_conn.c | 13 +++-- net/netfilter/ipvs/ip_vs_core.c | 5 - 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/net/netfilter/i