diff options
| author | Maciej Żenczykowski <[email protected]> | 2021-11-23 22:32:08 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-25 02:57:23 +0000 |
| commit | 305e95bb893cc50f7c59edf2b47d95effe73498a (patch) | |
| tree | dd1aa95f01be64d5f1045cf6c8573e083f1277d8 /net/unix/af_unix.c | |
| parent | net-ipv6: do not allow IPV6_TCLASS to muck with tcp's ECN (diff) | |
| download | kernel-305e95bb893cc50f7c59edf2b47d95effe73498a.tar.gz kernel-305e95bb893cc50f7c59edf2b47d95effe73498a.zip | |
net-ipv6: changes to ->tclass (via IPV6_TCLASS) should sk_dst_reset()
This is to match ipv4 behaviour, see __ip_sock_set_tos()
implementation.
Technically for ipv6 this might not be required because normally we
do not allow tclass to influence routing, yet the cli tooling does
support it:
lpk11:~# ip -6 rule add pref 5 tos 45 lookup 5
lpk11:~# ip -6 rule
5: from all tos 0x45 lookup 5
and in general dscp/tclass based routing does make sense.
We already have cases where dscp can affect vlan priority and/or
transmit queue (especially on wifi).
So let's just make things match. Easier to reason about and no harm.
Cc: Eric Dumazet <[email protected]>
Cc: Neal Cardwell <[email protected]>
Signed-off-by: Maciej Żenczykowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
