linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net 0/4] Do not use RT_TOS for IPv6 flowlabel
@ 2022-08-02 12:09 Matthias May
  2022-08-02 12:09 ` [PATCH v2 net 1/4] geneve: do " Matthias May
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Matthias May @ 2022-08-02 12:09 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, roopa, eng.alaamohamedsoliman.am,
	bigeasy, saeedm, leon, roid, maord, lariel, vladbu, cmi, gnault,
	yoshfuji, dsahern, linux-kernel, bpf, linux-rdma,
	nicolas.dichtel, eyal.birger, jesse, linville, daniel, hadarh,
	ogerlitz, willemb, martin.varghese, Matthias May

According to Guillaume Nault RT_TOS should never be used for IPv6.

Quote:
RT_TOS() is an old macro used to interprete IPv4 TOS as described in
the obsolete RFC 1349. It's conceptually wrong to use it even in IPv4
code, although, given the current state of the code, most of the
existing calls have no consequence.

But using RT_TOS() in IPv6 code is always a bug: IPv6 never had a "TOS"
field to be interpreted the RFC 1349 way. There's no historical
compatibility to worry about.

---
v1 -> v2:
 - Fix spacing of "Fixes" tag.
 - Add missing CCs

Matthias May (4):
  geneve: do not use RT_TOS for IPv6 flowlabel
  vxlan: do not use RT_TOS for IPv6 flowlabel
  mlx5: do not use RT_TOS for IPv6 flowlabel
  ipv6: do not use RT_TOS for IPv6 flowlabel

 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 4 ++--
 drivers/net/geneve.c                                | 3 +--
 drivers/net/vxlan/vxlan_core.c                      | 2 +-
 net/ipv6/ip6_output.c                               | 3 +--
 4 files changed, 5 insertions(+), 7 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-08-03 15:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 12:09 [PATCH v2 net 0/4] Do not use RT_TOS for IPv6 flowlabel Matthias May
2022-08-02 12:09 ` [PATCH v2 net 1/4] geneve: do " Matthias May
2022-08-03 11:23   ` Guillaume Nault
2022-08-03 11:30   ` Guillaume Nault
2022-08-03 12:40     ` Matthias May
2022-08-03 15:30   ` David Ahern
2022-08-02 12:09 ` [PATCH v2 net 2/4] vxlan: " Matthias May
2022-08-03 15:31   ` David Ahern
2022-08-02 12:09 ` [PATCH v2 net 3/4] mlx5: " Matthias May
2022-08-02 12:09 ` [PATCH v2 net 4/4] ipv6: " Matthias May
2022-08-03 15:31   ` David Ahern
2022-08-03 11:27 ` [PATCH v2 net 0/4] Do " Guillaume Nault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).