[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161020.112459.564839965287134365.davem@davemloft.net>
Date: Thu, 20 Oct 2016 11:24:59 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] tcp: relax listening_hash operations
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 19 Oct 2016 21:24:58 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> softirq handlers use RCU protection to lookup listeners,
> and write operations all happen from process context.
> We do not need to block BH for dump operations.
>
> Also SYN_RECV since request sockets are stored in the ehash table :
>
> 1) inet_diag_dump_icsk() no longer need to clear
> cb->args[3] and cb->args[4] that were used as cursors while
> iterating the old per listener hash table.
>
> 2) Also factorize a test : No need to scan listening_hash[]
> if r->id.idiag_dport is not zero.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied, thanks Eric.
Powered by blists - more mailing lists