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

Re: [PATCH net-next v2 4/7] ipv4: remove get_rttos

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2025-02-13 16:29:21

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

Initialize the ip cookie tos field when initializing the cookie, in
ipcm_init_sk.

The existing code inverts the standard pattern for initializing cookie
fields. Default is to initialize the field from the sk, then possibly
overwrite that when parsing cmsgs (the unlikely case).

This field inverts that, setting the field to an illegal value and
after cmsg parsing checking whether the value is still illegal and
thus should be overridden.

Be careful to always apply mask INET_DSCP_MASK, as before.
I have a similar doubt here. I'm unsure we can change an established
behavior.
This patch does not change behavior.

Does not intend to, at least.
I should have added that that is what the cmsg_ipv4 test extension is
for. It was indeed not covered by existing tests, unlike much of the
other changes.

That said, this is the least self evident patch of the series. If you
prefer I can send without.

Either way, I'll follow up with a cmsg_ip.sh refactoring of 
cmsg_ipv6.sh that extends coverage to IPv4.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help