summaryrefslogtreecommitdiff
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>2025-02-21 16:44:03 +0100
committerJakub Kicinski <kuba@kernel.org>2025-02-24 18:23:44 -0800
commit8275ac799ee15e972841eb77b694d63f5e888519 (patch)
treea359becb06c3565f8614502426a6ea5a888b3df3 /rust/helpers/security.c
parentb68b106b0f15424db6c78d8c1a0616f698080b9d (diff)
mptcp: blackhole: avoid checking the state twice
A small cleanup, reordering the conditions to avoid checking things twice. The code here is called in case of timeout on a TCP connection, before triggering a retransmission. But it only acts on SYN + MPC packets. So the conditions can be re-order to exit early in case of non-MPTCP SYN + MPC. This also reduce the indentation levels. Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20250221-net-next-mptcp-pm-misc-cleanup-3-v1-10-2b70ab1cee79@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions