[PATCH] ipv6:delete duplicate code for reserved iid check

2021-03-02 Thread zhang kai
Using the ipv6_reserved_interfaceid for interface id checking. Signed-off-by: zhang kai --- net/ipv6/addrconf.c | 45 +++-- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f2337fb75

[PATCH] rtnetlink: using dev_base_seq from target net

2021-03-02 Thread zhang kai
Signed-off-by: zhang kai --- net/core/rtnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 0edc0b2ba..1bdcb33fb 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -2147,7 +2147,7 @@ static int

[PATCH] tc: fq: clarify the length of orphan_mask.

2020-10-12 Thread zhang kai
From: "zhangkai...@126.com" Signed-off-by: kai zhang --- tc/q_fq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/q_fq.c b/tc/q_fq.c index 98d1bf40..b10d01e9 100644 --- a/tc/q_fq.c +++ b/tc/q_fq.c @@ -253,7 +253,7 @@ static int fq_parse_opt(struct qdisc_util *qu, int arg

[PATCH] tcp: tcp_mark_head_lost is only valid for sack-tcp

2020-05-06 Thread zhang kai
so tcp_is_sack/reno checks are removed from tcp_mark_head_lost. Signed-off-by: zhang kai --- net/ipv4/tcp_input.c | 32 +++- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index b996dc106..c306becf6 100644

[PATCH] ipvs: no need to update skb route entry for local destination packets.

2019-09-29 Thread zhang kai
In the end of function __ip_vs_get_out_rt/__ip_vs_get_out_rt_v6,the 'local' variable is always zero. Signed-off-by: zhang kai --- net/netfilter/ipvs/ip_vs_xmit.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xm

[PATCH] ipvs: change type of delta and previous_delta in ip_vs_seq.

2019-08-19 Thread zhang kai
In NAT forwarding mode, Applications may decrease the size of packets, and TCP sequences will get smaller, so both of variables will be negetive values in this case. Signed-off-by: zhang kai --- include/net/ip_vs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include