Skip to content
Commit 31f1fbcb authored by Peilin Ye's avatar Peilin Ye Committed by Jakub Kicinski
Browse files

udp: Refactor udp_read_skb()



Delete the unnecessary while loop in udp_read_skb() for readability.
Additionally, since recv_actor() cannot return a value greater than
skb->len (see sk_psock_verdict_recv()), remove the redundant check.

Suggested-by: default avatarCong Wang <cong.wang@bytedance.com>
Signed-off-by: default avatarPeilin Ye <peilin.ye@bytedance.com>
Link: https://lore.kernel.org/r/343b5d8090a3eb764068e9f1d392939e2b423747.1663909008.git.peilin.ye@bytedance.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c52add61
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment