inet: minor optimization for backlog setting in listen(2)
authorYafang Shao <laoar.shao@gmail.com>
Wed, 7 Nov 2018 11:20:16 +0000 (19:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 06:31:07 +0000 (22:31 -0800)
commit1295e2cf3065a55f35d112e4dfeb2c7322823249
treeeca7c4d056966400406e516f9cb77e2d0c0cc432
parent7dad9937e064a6411cc3427f3f5870fa72132ad8
inet: minor optimization for backlog setting in listen(2)

Set the backlog earlier in inet_dccp_listen() and inet_listen(),
then we can avoid the redundant setting.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/proto.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c