Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] cake and nat in openwrt... on by default?
Date: Sun, 5 Apr 2020 08:22:48 -0700	[thread overview]
Message-ID: <CAA93jw5qkWxsA__+69em0BRT32-Ze42NH7VorsCW1TE_JAio3Q@mail.gmail.com> (raw)
In-Reply-To: <FFAECE22-C1E8-4CA8-8ACF-8C49BEBE3DA8@darbyshire-bryant.me.uk>

On Sun, Apr 5, 2020 at 12:57 AM Kevin Darbyshire-Bryant
<kevin@darbyshire-bryant.me.uk> wrote:
>
>
>
> > On 5 Apr 2020, at 05:17, Dave Taht <dave.taht@gmail.com> wrote:
> >
> > I see cake is moving to the upstreamed version. As best as I recall,
> > nat mode was on by default in the openwrt code, but not the upstreamed
> > code.
> >
> > People not setting nat mode on would explain a few things i've seen
> > 'round the intertubes this week.
>
> From sch_cake repo and hence ‘out of tree’ cake
>
>         if (tb[TCA_CAKE_NAT]) {
> #if IS_REACHABLE(CONFIG_NF_CONNTRACK)
>                 q->flow_mode &= ~CAKE_FLOW_NAT_FLAG;
>                 q->flow_mode |= CAKE_FLOW_NAT_FLAG *
>                         !!nla_get_u32(tb[TCA_CAKE_NAT]);
> #else
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
>                 NL_SET_ERR_MSG_ATTR(extack, tb[TCA_CAKE_NAT],
>                                     "No conntrack support in kernel");
> #endif
>                 return -EOPNOTSUPP;
> #endif
>         }
>
>
> From kernel 5.4 as found in openwrt build dir
>
>         if (tb[TCA_CAKE_NAT]) {
> #if IS_ENABLED(CONFIG_NF_CONNTRACK)
>                 q->flow_mode &= ~CAKE_FLOW_NAT_FLAG;
>                 q->flow_mode |= CAKE_FLOW_NAT_FLAG *
>                         !!nla_get_u32(tb[TCA_CAKE_NAT]);
> #else
>                 NL_SET_ERR_MSG_ATTR(extack, tb[TCA_CAKE_NAT],
>                                     "No conntrack support in kernel");
>                 return -EOPNOTSUPP;
> #endif
>
>
>
> cake_init(…) in both does:
>
> q->flow_mode  = CAKE_FLOW_TRIPLE;
>
>
> So openwrt doesn’t, by default, enable NAT mode in cake.
>
> I honestly don’t think that there are enough instances of cake out there, let alone instances of cake from openwrt, let alone instances of cake from master which switched to upstream cake 2-3 days ago, to make any sort of difference anyway.

I'd still be willing to bet, then, that the majority of instances were
not turning nat mode on, when
they should have been.

>
> >
> > --
> > Make Music, Not War
> >
> > Dave Täht
> > CTO, TekLibre, LLC
> > http://www.teklibre.com
> > Tel: 1-831-435-0729
> > _______________________________________________
> > Cake mailing list
> > Cake@lists.bufferbloat.net
> > https://lists.bufferbloat.net/listinfo/cake
>
>
> Cheers,
>
> Kevin D-B
>
> gpg: 012C ACB2 28C6 C53E 9775  9123 B3A2 389B 9DE2 334A
>


-- 
Make Music, Not War

Dave Täht
CTO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-831-435-0729

  reply	other threads:[~2020-04-05 15:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-05  4:17 Dave Taht
2020-04-05  7:57 ` Kevin Darbyshire-Bryant
2020-04-05 15:22   ` Dave Taht [this message]
2020-04-05 18:03     ` Dave Taht
2020-04-05 19:56     ` Kevin Darbyshire-Bryant
2020-04-06 10:15       ` Toke Høiland-Jørgensen

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

  List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA93jw5qkWxsA__+69em0BRT32-Ze42NH7VorsCW1TE_JAio3Q@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=cake@lists.bufferbloat.net \
    --cc=kevin@darbyshire-bryant.me.uk \
    /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