Thread (1 message) 1 message, 1 author, 2025-07-02

Re: [Patch bpf-next v4 3/4] skmsg: save some space in struct sk_psock

From: Jakub Sitnicki <jakub@cloudflare.com>
Date: 2025-07-02 11:46:51
Also in: bpf

On Mon, Jun 30, 2025 at 06:12 PM -07, Cong Wang wrote:
From: Cong Wang <redacted>

This patch aims to save some space in struct sk_psock and prepares for
the next patch which will add more fields.

psock->eval can only have 4 possible values, make it 8-bit is
sufficient.

psock->redir_ingress is just a boolean, using 1 bit is enough.

Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Cong Wang <redacted>
---
We could probably tweak sk_psock_map_verd to map (SK_PASS, redir=true,
ingress=true) in to something like __SK_REDIR_INGRESS in the future, and
do away with psock->redir_ingress field completely.

Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help