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>