ipv6: introduce dst_rt6_info() helper
Instead of (struct rt6_info *)dst casts, we can use : #define dst_rt6_info(_ptr) \ container_of_const(_ptr, struct rt6_info, dst) Some places needed missing const qualifiers : ip6_confirm_neigh(), ipv6_anycast_destination(), ipv6_unicast_destination(), has_gateway() v2: added missing parts (David Ahern) Signed-off-by:Eric Dumazet <edumazet@google.com> Reviewed-by:
David Ahern <dsahern@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/infiniband/core/addr.c 3 additions, 3 deletionsdrivers/infiniband/core/addr.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
- drivers/net/vrf.c 1 addition, 1 deletiondrivers/net/vrf.c
- drivers/net/vxlan/vxlan_core.c 1 addition, 1 deletiondrivers/net/vxlan/vxlan_core.c
- drivers/s390/net/qeth_core.h 2 additions, 2 deletionsdrivers/s390/net/qeth_core.h
- include/net/ip6_fib.h 4 additions, 2 deletionsinclude/net/ip6_fib.h
- include/net/ip6_route.h 5 additions, 6 deletionsinclude/net/ip6_route.h
- net/bluetooth/6lowpan.c 1 addition, 1 deletionnet/bluetooth/6lowpan.c
- net/core/dst_cache.c 1 addition, 1 deletionnet/core/dst_cache.c
- net/core/filter.c 1 addition, 1 deletionnet/core/filter.c
- net/ipv4/ip_tunnel.c 1 addition, 1 deletionnet/ipv4/ip_tunnel.c
- net/ipv6/icmp.c 4 additions, 4 deletionsnet/ipv6/icmp.c
- net/ipv6/ila/ila_lwt.c 2 additions, 2 deletionsnet/ipv6/ila/ila_lwt.c
- net/ipv6/ip6_output.c 9 additions, 9 deletionsnet/ipv6/ip6_output.c
- net/ipv6/ip6mr.c 1 addition, 1 deletionnet/ipv6/ip6mr.c
- net/ipv6/ndisc.c 1 addition, 1 deletionnet/ipv6/ndisc.c
- net/ipv6/ping.c 1 addition, 1 deletionnet/ipv6/ping.c
- net/ipv6/raw.c 2 additions, 2 deletionsnet/ipv6/raw.c
- net/ipv6/route.c 14 additions, 14 deletionsnet/ipv6/route.c
- net/ipv6/tcp_ipv6.c 1 addition, 3 deletionsnet/ipv6/tcp_ipv6.c
Loading
Please register or sign in to comment