From: Nikolay Aleksandrov <nikolay@nvidia.com>
To: Stephen Suryaputra <ssuryaextr@gmail.com>, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] ipmr: ip6mr: Add ability to display non default caches and vifs
Date: Thu, 19 Aug 2021 01:37:21 +0300 [thread overview]
Message-ID: <912ed426-68c3-6a44-daec-484b45fdebde@nvidia.com> (raw)
In-Reply-To: <20210818200951.7621-1-ssuryaextr@gmail.com>
On 18/08/2021 23:09, Stephen Suryaputra wrote:
> With multiple mroute tables it seems that there should be a way to
> display caches and vifs for the non-default table. Add two sysctls to
> control what to display. The default values for the sysctls are
> RT_TABLE_DEFAULT (253) and RT6_TABLE_DFLT (254).
>
> Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
> ---
> Documentation/networking/ip-sysctl.rst | 14 ++++++++++++++
> include/net/netns/ipv4.h | 3 +++
> include/net/netns/ipv6.h | 3 +++
> net/ipv4/af_inet.c | 3 +++
> net/ipv4/ipmr.c | 14 ++++++++++++--
> net/ipv4/sysctl_net_ipv4.c | 9 +++++++++
> net/ipv6/ip6mr.c | 14 ++++++++++++--
> net/ipv6/route.c | 3 +++
> net/ipv6/sysctl_net_ipv6.c | 9 +++++++++
> 9 files changed, 68 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst
> index d91ab28718d4..de47563514f0 100644
> --- a/Documentation/networking/ip-sysctl.rst
> +++ b/Documentation/networking/ip-sysctl.rst
> @@ -1382,6 +1382,13 @@ mc_forwarding - BOOLEAN
> conf/all/mc_forwarding must also be set to TRUE to enable multicast
> routing for the interface
Sorry, but I don't see any point to this. We don't have it for any of the other
non-default cases, and I don't see a point of having it for ipmr either.
If you'd like to display the non-default tables then you query for them, you
don't change a sysctl to see them in /proc.
It sounds like a workaround for an issue that is not solved properly, and
generally it shouldn't be using /proc. If netlink interfaces are not sufficient
please improve them.
Why do we need a whole new sysctl or net proc entries ?
Cheers,
Nik
next prev parent reply other threads:[~2021-08-18 22:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-18 20:09 [PATCH net-next] ipmr: ip6mr: Add ability to display non default caches and vifs Stephen Suryaputra
2021-08-18 22:37 ` Nikolay Aleksandrov [this message]
2021-08-18 22:50 ` Stephen Suryaputra
2021-08-18 23:09 ` Andrew Lunn
2021-08-18 23:12 ` Nikolay Aleksandrov
2021-08-19 0:04 ` David Ahern
2021-09-20 23:49 ` Stephen Suryaputra
2021-09-21 7:43 ` Nikolay Aleksandrov
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=912ed426-68c3-6a44-daec-484b45fdebde@nvidia.com \
--to=nikolay@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=ssuryaextr@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).