From: Sabrina Dubroca <sd@queasysnail.net>
To: Eric Dumazet <edumazet@google.com>
Cc: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
David Ahern <dsahern@kernel.org>,
netdev@vger.kernel.org, eric.dumazet@gmail.com
Subject: Re: [PATCH net-next] inet: introduce dst_rtable() helper
Date: Tue, 30 Apr 2024 12:31:51 +0200 [thread overview]
Message-ID: <ZjDIl3F2amAKLX02@hog> (raw)
In-Reply-To: <20240429133009.1227754-1-edumazet@google.com>
2024-04-29, 13:30:09 +0000, Eric Dumazet wrote:
> I added dst_rt6_info() in commit
> e8dfd42c17fa ("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>
> ---
> drivers/infiniband/core/addr.c | 12 +++---------
> drivers/net/vrf.c | 2 +-
> drivers/s390/net/qeth_core.h | 5 ++---
> include/linux/skbuff.h | 9 ---------
> include/net/ip.h | 4 ++--
> include/net/route.h | 11 +++++++++++
> net/atm/clip.c | 2 +-
> net/core/dst_cache.c | 2 +-
> net/core/filter.c | 3 +--
> net/ipv4/af_inet.c | 2 +-
> net/ipv4/icmp.c | 26 ++++++++++++++------------
> net/ipv4/ip_input.c | 2 +-
> net/ipv4/ip_output.c | 8 ++++----
> net/ipv4/route.c | 24 +++++++++++-------------
> net/ipv4/udp.c | 2 +-
> net/ipv4/xfrm4_policy.c | 2 +-
> net/l2tp/l2tp_ip.c | 2 +-
> net/mpls/mpls_iptunnel.c | 2 +-
> net/netfilter/ipvs/ip_vs_xmit.c | 2 +-
> net/netfilter/nf_flow_table_ip.c | 4 ++--
> net/netfilter/nft_rt.c | 2 +-
> net/sctp/protocol.c | 4 ++--
> net/tipc/udp_media.c | 2 +-
> 23 files changed, 64 insertions(+), 70 deletions(-)
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
--
Sabrina
next prev parent reply other threads:[~2024-04-30 10:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 13:30 [PATCH net-next] inet: introduce dst_rtable() helper Eric Dumazet
2024-04-29 18:51 ` David Ahern
2024-04-30 10:31 ` Sabrina Dubroca [this message]
2024-05-01 1:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZjDIl3F2amAKLX02@hog \
--to=sd@queasysnail.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.