[PATCH 1/1] tap: RCU usage and comment fixes

2018-08-17 Thread Wang Jian
The tap_queue and the 'tap_dev' are loosely coupled, not 'macvlan_dev'. Taking rcu_read_lock a little later seems can slightly reduce rcu read critical section. Signed-off-by: Wang Jian --- drivers/net/tap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net

[PATCH 1/1] tcp: tcp_mtup_probe -> tcp_mtu_probe

2018-06-18 Thread Wang Jian
reduction we did in tcp_mtup_probe() */ + /* Restores the reduction we did in tcp_mtu_probe() */ tp->snd_cwnd++; tcp_simple_retransmit(sk); return; -- Regards, Wang Jian

[PATCH 1/1] selftest: check tunnel type more accurately

2018-06-13 Thread Wang Jian
Grep tunnel type directly to make sure 'ip' command supports it. Signed-off-by: Jian Wang --- tools/testing/selftests/bpf/test_tunnel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_tunnel.sh b/tools/testing/selftests/bpf/test_tunnel.sh

Re: One question about __tcp_select_window()

2018-04-17 Thread Wang Jian
Apr 17, 2018 at 10:43 PM, Eric Dumazet <eric.duma...@gmail.com> wrote: > > > On 04/17/2018 06:53 AM, Wang Jian wrote: >> I test the fix with 4.17.0-rc1+ and it seems work. >> >> 1. iperf -c IP -i 20 -t 60 -w 1K >> with-fix vs without-fix : 1.15Gbits/sec vs

Re: One question about __tcp_select_window()

2018-04-17 Thread Wang Jian
retransmit/drops. On Sun, Apr 15, 2018 at 8:50 PM, Wang Jian <jianjian.wa...@gmail.com> wrote: > Hi all, > > While I read __tcp_select_window() code, I find that it maybe return a > smaller window. > Below is one scenario I thought, may be not right: > In function __tcp

One question about __tcp_select_window()

2018-04-15 Thread Wang Jian
Hi all, While I read __tcp_select_window() code, I find that it maybe return a smaller window. Below is one scenario I thought, may be not right: In function __tcp_select_window(), assume: full_space is 6mss, free_space is 2mss, tp->rcv_wnd is 3MSS. And assume disable window scaling, then window

Re: [PATCH] pktgen: use dynamic allocation for debug print buffer

2018-03-13 Thread Wang Jian
>> + kfree(buf); free tb? buf is an array. On Wed, Mar 14, 2018 at 8:25 AM, David Miller wrote: > From: Arnd Bergmann > Date: Tue, 13 Mar 2018 21:58:39 +0100 > >> After the removal of the VLA, we get a harmless warning about a large >> stack frame: >> >>

where can I find netdev2.2 slides?

2017-11-28 Thread Wang Jian
Hi all, Sorry for broadcast. Just a query, where can I find netdev2.2 slides? Seems they are not uploaded to netdev websites.