![]() |
lvs-devel
|
| To: | "longguang.yue" <bigclouds@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v2] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode |
| Cc: | yuelongguang@xxxxxxxxx, Wensong Zhang <wensong@xxxxxxxxxxxx>, Simon Horman <horms@xxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>, Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxx>, Florian Westphal <fw@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| From: | Jakub Kicinski <kuba@xxxxxxxxxx> |
| Date: | Tue, 29 Sep 2020 07:41:49 -0700 |
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 && p->cport == cp->dport &&
> + if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ){
> + cport = cp->vport;
checkpatch says:
ERROR: space required before the open brace '{'
#25: FILE: net/netfilter/ipvs/ip_vs_core.c:1416:
+ if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ){
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v2] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode, longguang.yue |
|---|---|
| Next by Date: | [PATCH v3] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode, longguang.yue |
| Previous by Thread: | [PATCH v2] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode, longguang.yue |
| Next by Thread: | [PATCH v3] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode, longguang.yue |
| Indexes: | [Date] [Thread] [Top] [All Lists] |