netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
To: Roman Gushchin <klamm@yandex-team.ru>,
	"David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] net: sysctl for RA default route MTU
Date: Wed, 25 Mar 2015 19:14:15 +0100	[thread overview]
Message-ID: <1427307255.3555533.245187845.14A187CD@webmail.messagingengine.com> (raw)
In-Reply-To: <39171427301187@webcorp02f.yandex-team.ru>

Hi,

On Wed, Mar 25, 2015, at 17:33, Roman Gushchin wrote:
> 25.03.2015, 18:52, "Hannes Frederic Sowa" <hannes@stressinduktion.org>:
> > On Wed, Mar 25, 2015, at 12:07, Roman Gushchin wrote:
> >>  --- a/net/ipv6/route.c
> >>  +++ b/net/ipv6/route.c
> >>  @@ -1714,6 +1714,14 @@ int ip6_route_add(struct fib6_config *cfg)
> >>
> >>           rt->rt6i_flags = cfg->fc_flags;
> >>
> >>  +       if ((cfg->fc_flags & (RTF_ADDRCONF | RTF_DEFAULT | RTF_GATEWAY))
> >>  ==
> >>  +           (RTF_ADDRCONF | RTF_DEFAULT | RTF_GATEWAY)) {
> >>  +               u32 mtu = idev->cnf.ra_default_route_mtu;
> >>  +
> >>  +               if (mtu && mtu >= IPV6_MIN_MTU && mtu <= idev->cnf.mtu6)
> >>  +                       dst_metric_set(&rt->dst, RTAX_MTU, mtu);
> >>  +       }
> >>  +
> >
> > Could you move this RA specific snippet over to ndisc.c?
> 
> Ok, no problem.

Thanks!

> >
> > Hmm
> >
> > How do you use this option?
> 
> We want to set and keep normal (~1500) MTU on default route for external
> connections
> without an additional userspace effort, while link MTU is 9000 to support
> jumbo frames
> on other routes.
> 
> > You use jumbo frames on the on-link network and announce all routes via
> > route options where you also want to communicate to with jumbo frames?
> 
> Yes, exactly.
> 
> >
> > I wonder if an offlink_mtu parameter would be more suitable?
> 
> If I understand you correctly, the difference is which MTU will have
> routes, announced via RIO.
> Am I right?
> If so, it will not help in our case, because only default route should
> have "small" MTU,
> and there is no way to announce per-route MTUs for RIO routes.
> I thought about two separate knobs (ra_default_route_mtu and
> ra_rt_info_route_mtu, for example),
> but it seemed to me too excessive.

Hmm. I revert my opinion on offlink_mtu parameter.

So the approach would be to just basically leave your patch as-is and if
another segment can be talked to with jumbo frames one could just let
the RA speaker add another route announcement which should get a more
specific route into the tables with the jumbo MTU from the RA packet.
Only default routes will get the overwritten MTU value from the new
knob. Am I correct? So your approach seems to be the most flexible
option.

Thanks and looking forward to the new patch,
Hannes

  parent reply	other threads:[~2015-03-25 18:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150324.152705.921124268458994532.davem@davemloft.net>
2015-03-25  9:49 ` [PATCH] net: sysctl for RA default route MTU Roman Gushchin
2015-03-25 11:07 ` [PATCH v2] " Roman Gushchin
2015-03-25 12:34   ` Denis Kirjanov
2015-03-25 15:52   ` Hannes Frederic Sowa
     [not found]     ` <39171427301187@webcorp02f.yandex-team.ru>
2015-03-25 18:14       ` Hannes Frederic Sowa [this message]
2015-03-26 11:49         ` [PATCH v3] " Roman Gushchin
2015-03-26 14:49           ` Hannes Frederic Sowa
2015-03-29 19:42           ` David Miller
2015-03-30 12:30             ` Roman Gushchin
2015-03-31 20:05               ` David Miller
2015-03-31 20:35                 ` Hannes Frederic Sowa
2015-03-31 20:49                   ` David Miller
2015-04-01  9:58                     ` Roman Gushchin
2015-04-01 17:55                       ` David Miller
2015-04-01 19:27                         ` Hannes Frederic Sowa
2015-04-02 18:08                           ` Roman Gushchin
2015-04-07 15:58                             ` Hannes Frederic Sowa
2015-04-08 19:03                               ` Roman Gushchin

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=1427307255.3555533.245187845.14A187CD@webmail.messagingengine.com \
    --to=hannes@stressinduktion.org \
    --cc=davem@davemloft.net \
    --cc=klamm@yandex-team.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).