netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] ipv4: Convert ip_route_input_slow() and its callers to dscp_t.
@ 2024-10-01 19:28 Guillaume Nault
  2024-10-01 19:28 ` [PATCH net-next 1/5] ipv4: Convert icmp_route_lookup() " Guillaume Nault
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Guillaume Nault @ 2024-10-01 19:28 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski, Paolo Abeni, Eric Dumazet
  Cc: netdev, David Ahern, Ido Schimmel, Pablo Neira Ayuso,
	Jozsef Kadlecsik, Roopa Prabhu, Nikolay Aleksandrov,
	Steffen Klassert, Herbert Xu

Prepare ip_route_input_slow() and its call chain to future conversion
of ->flowi4_tos.

The ->flowi4_tos field of "struct flowi4" is used in many different
places, which makes it hard to convert it from __u8 to dscp_t.

In order to avoid a big patch updating all its users at once, this
patch series gradually converts some users to dscp_t. Those users now
set ->flowi4_tos from a dscp_t variable that is converted to __u8 using
inet_dscp_to_dsfield().

When all users of ->flowi4_tos will use a dscp_t variable, converting
that field to dscp_t will just be a matter of removing all the
inet_dscp_to_dsfield() conversions.

This series concentrates on ip_route_input_slow() and its direct and
indirect callers.

Guillaume Nault (5):
  ipv4: Convert icmp_route_lookup() to dscp_t.
  ipv4: Convert ip_route_input() to dscp_t.
  ipv4: Convert ip_route_input_noref() to dscp_t.
  ipv4: Convert ip_route_input_rcu() to dscp_t.
  ipv4: Convert ip_route_input_slow() to dscp_t.

 drivers/net/ipvlan/ipvlan_l3s.c |  6 ++++--
 include/net/ip.h                |  5 +++++
 include/net/route.h             |  8 ++++----
 net/bridge/br_netfilter_hooks.c |  8 +++++---
 net/core/lwt_bpf.c              |  5 +++--
 net/ipv4/icmp.c                 | 19 +++++++++----------
 net/ipv4/ip_fragment.c          |  4 ++--
 net/ipv4/ip_input.c             |  2 +-
 net/ipv4/ip_options.c           |  3 ++-
 net/ipv4/route.c                | 32 ++++++++++++++++++--------------
 net/ipv4/xfrm4_input.c          |  2 +-
 net/ipv4/xfrm4_protocol.c       |  2 +-
 net/ipv6/ip6_tunnel.c           |  4 ++--
 13 files changed, 57 insertions(+), 43 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2024-10-03 23:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 19:28 [PATCH net-next 0/5] ipv4: Convert ip_route_input_slow() and its callers to dscp_t Guillaume Nault
2024-10-01 19:28 ` [PATCH net-next 1/5] ipv4: Convert icmp_route_lookup() " Guillaume Nault
2024-10-01 19:28 ` [PATCH net-next 2/5] ipv4: Convert ip_route_input() " Guillaume Nault
2024-10-01 19:28 ` [PATCH net-next 3/5] ipv4: Convert ip_route_input_noref() " Guillaume Nault
2024-10-01 19:28 ` [PATCH net-next 4/5] ipv4: Convert ip_route_input_rcu() " Guillaume Nault
2024-10-01 19:29 ` [PATCH net-next 5/5] ipv4: Convert ip_route_input_slow() " Guillaume Nault
2024-10-02  2:45 ` [PATCH net-next 0/5] ipv4: Convert ip_route_input_slow() and its callers " David Ahern
2024-10-03 23:40 ` patchwork-bot+netdevbpf

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).