linux/net/atm
Eric Dumazet 05d6d49209 inet: introduce dst_rtable() helper
I added dst_rt6_info() in commit
e8dfd42c17 ("ipv6: introduce dst_rt6_info() helper")

This patch does a similar change for IPv4.

Instead of (struct rtable *)dst casts, we can use :

 #define dst_rtable(_ptr) \
             container_of_const(_ptr, struct rtable, dst)

Patch is smaller than IPv6 one, because IPv4 has skb_rtable() helper.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/20240429133009.1227754-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-30 18:32:38 -07:00
..
addr.c
addr.h
atm_misc.c
atm_sysfs.c net: atm: Remove redundant check. 2023-10-23 08:45:25 +01:00
br2684.c net: atm: use address setting helpers 2021-10-24 13:59:45 +01:00
clip.c inet: introduce dst_rtable() helper 2024-04-30 18:32:38 -07:00
common.c net: add sk_wake_async_rcu() helper 2024-03-29 15:03:11 -07:00
common.h
ioctl.c atm: Fix Use-After-Free in do_vcc_ioctl 2023-12-12 13:14:08 +01:00
Kconfig
lec.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
lec.h
lec_arpc.h
Makefile
mpc.c net: fill in MODULE_DESCRIPTION()s for mpoa 2024-02-09 14:12:01 -08:00
mpc.h
mpoa_caches.c
mpoa_caches.h
mpoa_proc.c net/atm: fix proc_mpc_write incorrect return value 2022-10-15 11:08:36 +01:00
pppoatm.c
proc.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
protocols.h
pvc.c sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES) 2023-06-24 15:50:13 -07:00
raw.c
resources.c atm: hide unused procfs functions 2023-05-17 21:27:30 -07:00
resources.h
signaling.c net: annotate lockless accesses to sk->sk_err_soft 2023-03-17 08:25:05 +00:00
signaling.h
svc.c sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES) 2023-06-24 15:50:13 -07:00