[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250206193521.2285488-1-willemdebruijn.kernel@gmail.com>
Date: Thu, 6 Feb 2025 14:34:47 -0500
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net,
kuba@...nel.org,
edumazet@...gle.com,
pabeni@...hat.com,
Willem de Bruijn <willemb@...gle.com>
Subject: [PATCH net-next 0/7] net: deduplicate cookie logic
From: Willem de Bruijn <willemb@...gle.com>
Reuse standard sk, ip and ipv6 cookie init handlers where possible.
Avoid repeated open coding of the same logic.
Harmonize feature sets across protocols.
Make IPv4 and IPv6 logic more alike.
Simplify adding future new fields with a single init point.
Willem de Bruijn (7):
tcp: only initialize sockcm tsflags field
net: initialize mark in sockcm_init
ipv4: initialize inet socket cookies with sockcm_init
ipv4: remove get_rttos
icmp: reflect tos through ip cookie rather than updating inet_sk
ipv6: replace ipcm6_init calls with ipcm6_init_sk
ipv6: initialize inet socket cookies with sockcm_init
include/net/ip.h | 16 +++++-----------
include/net/ipv6.h | 11 ++---------
include/net/sock.h | 1 +
net/can/raw.c | 2 +-
net/ipv4/icmp.c | 4 ++--
net/ipv4/ip_sockglue.c | 4 ++--
net/ipv4/ping.c | 1 -
net/ipv4/raw.c | 1 -
net/ipv4/tcp.c | 2 +-
net/ipv4/udp.c | 1 -
net/ipv6/ping.c | 3 ---
net/ipv6/raw.c | 15 +++------------
net/ipv6/udp.c | 10 +---------
net/l2tp/l2tp_ip6.c | 8 +-------
net/packet/af_packet.c | 9 ++++-----
15 files changed, 23 insertions(+), 65 deletions(-)
--
2.48.1.502.g6dc24dfdaf-goog
Powered by blists - more mailing lists