mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 04:23:03 +02:00
mptcp: being below memory limit is a likely() condition
The current compiler hint annotation is wrong, due to inverted
logic in the previous revision of the relevant code.
Fixes: e468d37118 ("mptcp: implemented OoO queue pruning")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260908-net-mptcp-misc-fixes-7-3-rc1-v2-14-df1de70348b6@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b110f1dd6c
commit
a4257a91af
|
|
@ -289,8 +289,8 @@ static void mptcp_prune_ofo_queue(struct sock *sk,
|
|||
*/
|
||||
static bool mptcp_can_ingest(const struct sock *sk)
|
||||
{
|
||||
return unlikely(sk_rmem_alloc_get(sk) <= READ_ONCE(sk->sk_rcvbuf)) ||
|
||||
__mptcp_check_fallback(mptcp_sk(sk));
|
||||
return likely(sk_rmem_alloc_get(sk) <= READ_ONCE(sk->sk_rcvbuf)) ||
|
||||
__mptcp_check_fallback(mptcp_sk(sk));
|
||||
}
|
||||
|
||||
static bool mptcp_try_rmem_schedule(struct sock *sk, const struct sk_buff *skb)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user