netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: constify 'struct net' parameter of socket lookups
@ 2024-08-02 13:40 Eric Dumazet
  2024-08-02 13:40 ` [PATCH net-next 1/5] inet: constify inet_sk_bound_dev_eq() net parameter Eric Dumazet
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Eric Dumazet @ 2024-08-02 13:40 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: David Ahern, Willem de Bruijn, Tom Herbert, netdev, eric.dumazet,
	Eric Dumazet

We should keep const qualifiers whenever possible.

This series should remove the need for Tom patch in :

Link: https://lore.kernel.org/netdev/20240731172332.683815-2-tom@herbertland.com/

Eric Dumazet (5):
  inet: constify inet_sk_bound_dev_eq() net parameter
  inet: constify 'struct net' parameter of various lookup helpers
  udp: constify 'struct net' parameter of socket lookups
  inet6: constify 'struct net' parameter of various lookup helpers
  ipv6: udp: constify 'struct net' parameter of socket lookups

 include/linux/filter.h         |  4 ++--
 include/net/inet6_hashtables.h | 14 +++++++-------
 include/net/inet_hashtables.h  | 10 +++++-----
 include/net/inet_sock.h        |  3 ++-
 include/net/ipv6_stubs.h       |  2 +-
 include/net/udp.h              | 14 ++++++++------
 net/ipv4/inet_hashtables.c     | 12 ++++++------
 net/ipv4/udp.c                 |  8 ++++----
 net/ipv6/inet6_hashtables.c    | 15 ++++++++-------
 net/ipv6/udp.c                 |  8 ++++----
 10 files changed, 47 insertions(+), 43 deletions(-)

-- 
2.46.0.rc2.264.g509ed76dc8-goog


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

end of thread, other threads:[~2024-08-05 23:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02 13:40 [PATCH net-next 0/5] net: constify 'struct net' parameter of socket lookups Eric Dumazet
2024-08-02 13:40 ` [PATCH net-next 1/5] inet: constify inet_sk_bound_dev_eq() net parameter Eric Dumazet
2024-08-05 13:52   ` Simon Horman
2024-08-02 13:40 ` [PATCH net-next 2/5] inet: constify 'struct net' parameter of various lookup helpers Eric Dumazet
2024-08-05 13:52   ` Simon Horman
2024-08-02 13:40 ` [PATCH net-next 3/5] udp: constify 'struct net' parameter of socket lookups Eric Dumazet
2024-08-05 13:53   ` Simon Horman
2024-08-02 13:40 ` [PATCH net-next 4/5] inet6: constify 'struct net' parameter of various lookup helpers Eric Dumazet
2024-08-05 13:54   ` Simon Horman
2024-08-02 13:40 ` [PATCH net-next 5/5] ipv6: udp: constify 'struct net' parameter of socket lookups Eric Dumazet
2024-08-05 13:54   ` Simon Horman
2024-08-05 23:54 ` [PATCH net-next 0/5] net: " 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).