Skip to content

net: constify 'struct net' parameter of socket lookups

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5inet: constify inet_sk_bound_dev_eq() net parameterinclude/net/inet6_hashtables.h include/net/inet_hashtables.h include/net/inet_sock.h +2 more+6 -51 replyApplied
2/5inet: constify 'struct net' parameter of various lookup helpersinclude/linux/filter.h include/net/inet_hashtables.h net/ipv4/inet_hashtables.c+10 -101 replyApplied
3/5udp: constify 'struct net' parameter of socket lookupsinclude/net/udp.h net/ipv4/udp.c+10 -81 replyApplied
4/5inet6: constify 'struct net' parameter of various lookup helpersinclude/linux/filter.h include/net/inet6_hashtables.h net/ipv6/inet6_hashtables.c+14 -131 replyApplied
5/5ipv6: udp: constify 'struct net' parameter of socket lookupsinclude/net/ipv6_stubs.h include/net/udp.h net/ipv6/udp.c+7 -71 replyApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/5] net: constify 'struct net' parameter of socket lookups

We should keep const qualifiers whenever possible.

This series should remove the need for Tom patch in :

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(-)
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog