Re: [PATCH net-next v1 02/15] psp: take the psp nexthdr from the packet on encap

From: Todd Bert Freed

Date: Tue Nov 17 2026 - 17:17:37 EST


> [Severity: Medium]
>
> psp_dev_encapsulate() now accepts non-TCP packets. Is the outer UDP
> source port selection in psp_write_headers() still correct when skb->sk
> is a UDP socket?
>
> ...
>
> Should the sk->sk_hash path be limited to TCP sockets, with other sockets
> falling back to udp_flow_src_port()?

Yep. v2 will only use sk_hash for TCP.

pw-bot: cr

-Todd