]> git.baikalelectronics.ru Git - kernel.git/commit
net: correct sk_acceptq_is_full()
authorliuyacan <yacanliu@163.com>
Thu, 11 Mar 2021 16:32:25 +0000 (00:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 20:27:14 +0000 (12:27 -0800)
commit36bcac55bf62af844ab07bf507674a90724d862c
tree058291b43c925bd06f6529f844083edcfa631631
parentf6af5d35ce076a63a70d25b6073f7f4b2ab77be6
net: correct sk_acceptq_is_full()

The "backlog" argument in listen() specifies
the maximom length of pending connections,
so the accept queue should be considered full
if there are exactly "backlog" elements.

Signed-off-by: liuyacan <yacanliu@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h