Re: [PATCH net-next] lib/win_minmax: export symbol of minmax_running_min

From: Andrew Morton
Date: Fri Apr 14 2023 - 17:20:36 EST


On Fri, 14 Apr 2023 16:17:40 +0200 Eric Dumazet <edumazet@xxxxxxxxxx> wrote:

> On Fri, Apr 14, 2023 at 4:27 AM Yixin Shen <bobankhshen@xxxxxxxxx> wrote:
> >
> > > Please provide in-tree kernel user for that EXPORT_SYMBOL.
> >
> > It is hard to provide such an in-tree kernel user. We are trying to
> > implement newer congestion control algorithms as dynamically loaded modules.
> > For example, Copa(NSDI'18) which is adopted by Facebook needs to maintain
> > such windowed min filters. Althought it is true that we can just
> > copy-and-paste the code inside lib/win_minmax, it it more convenient to
> > give the same status of minmax_running_min as minmax_running_max.
> > It is confusing that only minmax_running_max is exported.
>
> This is needed by net/ipv4/tcp_bbr.c , which can be a module.
>
> > If this patch is rejected because the changes are too significant,
>
> Well, this path would soon be reverted by people using bots/tools to
> detect unused functions,
> or unused EXPORT symbols.
>
> So there is no point accepting it, before you submit the CC in the
> official linux tree.

It seems pretty darn screwy that we export minmax_running_max() but not
minmax_running_min().

I'd be OK taking the patch just so we aren't pretty darn screwy. But
it would be perfectly OK to include that one-liner within the patchset
which adds a minmax_running_min() user.