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)
commitf211ac154577ec9ccf07c15f18a6abf0d9bdb4ab
tree058291b43c925bd06f6529f844083edcfa631631
parent080bfa1e6d928a5d1f185cc44e5f3c251df06df5
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