On Mon, Jun 30, 2025 at 06:11 PM -07, Cong Wang wrote:
From: Zijian Zhang <redacted>
Optimizing redirect ingress performance requires frequent allocation and
deallocation of sk_msg structures. Introduce a dedicated kmem_cache for
sk_msg to reduce memory allocation overhead and improve performance.
Acked-by: John Fastabend <john.fastabend@gmail.com>
Reviewed-by: Cong Wang <redacted>
Signed-off-by: Zijian Zhang <redacted>
---
skb ref management looks all right. Meaning I see no double release.
sk_msg_free clears the msg->skb field.
While sk_psock_skb_ingress_enqueue sets msg->skb only when it succeeds.
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>