Thread (18 messages) 18 messages, 4 authors, 2025-02-14

Re: [PATCH net-next v2 2/7] net: initialize mark in sockcm_init

From: Paolo Abeni <pabeni@redhat.com>
Date: 2025-02-13 14:48:17

On 2/12/25 3:09 AM, Willem de Bruijn wrote:
From: Willem de Bruijn <willemb@google.com>

Avoid open coding initialization of sockcm fields.
Avoid reading the sk_priority field twice.

This ensures all callers, existing and future, will correctly try a
cmsg passed mark before sk_mark.

This patch extends support for cmsg mark to:
packet_spkt and packet_tpacket and net/can/raw.c.

This patch extends support for cmsg priority to:
packet_spkt and packet_tpacket.
I admit I'm a little bit concerned vs possibly impacting existing
applications doing weird thing like passing the relevant cmsg and
expecting it to be ignored.

Too paranoid on my side?

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help