]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: blackhole: avoid checking the state twice
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 21 Feb 2025 15:44:03 +0000 (16:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Feb 2025 02:23:44 +0000 (18:23 -0800)
commit8275ac799ee15e972841eb77b694d63f5e888519
treea359becb06c3565f8614502426a6ea5a888b3df3
parentb68b106b0f15424db6c78d8c1a0616f698080b9d
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>
net/mptcp/ctrl.c