]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: optimize release_cb for the common case
authorPaolo Abeni <pabeni@redhat.com>
Fri, 8 Apr 2022 19:45:54 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 10:55:53 +0000 (11:55 +0100)
commite175c2a18941cf3bafc7fa57031124661e4b180f
treea778e380dd4376b27989a3245bde7484bce5c97e
parent67d4d1da1e40febd082e918bb9b845d0a07f35bf
mptcp: optimize release_cb for the common case

The mptcp release callback checks several flags in atomic
context, but only MPTCP_CLEAN_UNA can be up frequently.

Reorganize the code to avoid multiple conditionals in the
most common scenarios.

Additional clarify a related comment.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c