subflow: introduce and use mptcp_can_accept_new_subflow()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2020 11:02:36 +0000 (13:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:47:25 +0000 (11:47 -0700)
commit4cf8b7e48a09745145881b311fe6a9154ba69ebc
tree1b1a3e1a11bdb28bcf1943cdd5428abc836af391
parent97e617518cbc318113b034a5fb33f49c81701278
subflow: introduce and use mptcp_can_accept_new_subflow()

So that we can easily perform some basic PM-related
adimission checks before creating the child socket.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c