mbox series

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

Message ID 20240802134029.3748005-1-edumazet@google.com (mailing list archive)
Headers show
Series net: constify 'struct net' parameter of socket lookups | expand

Message

Eric Dumazet Aug. 2, 2024, 1:40 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 5, 2024, 11:54 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri,  2 Aug 2024 13:40:24 +0000 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] inet: constify inet_sk_bound_dev_eq() net parameter
    https://git.kernel.org/netdev/net-next/c/a2dc7bee4f77
  - [net-next,2/5] inet: constify 'struct net' parameter of various lookup helpers
    https://git.kernel.org/netdev/net-next/c/d4433e8b405a
  - [net-next,3/5] udp: constify 'struct net' parameter of socket lookups
    https://git.kernel.org/netdev/net-next/c/b9abcbb1239c
  - [net-next,4/5] inet6: constify 'struct net' parameter of various lookup helpers
    https://git.kernel.org/netdev/net-next/c/10b2a44ccb0c
  - [net-next,5/5] ipv6: udp: constify 'struct net' parameter of socket lookups
    https://git.kernel.org/netdev/net-next/c/87d973e8ddee

You are awesome, thank you!