[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iLVRPHQ0TzWWOs8S1hA5Uwck_j=tPAQquv+qDf8bMkmYQ@mail.gmail.com>
Date: Wed, 2 Oct 2024 09:41:35 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Jason Xing <kerneljasonxing@...il.com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
willemdebruijn.kernel@...il.com, willemb@...gle.com, netdev@...r.kernel.org,
Jason Xing <kernelxing@...cent.com>
Subject: Re: [PATCH net-next v2] net-timestamp: namespacify the sysctl_tstamp_allow_data
On Wed, Oct 2, 2024 at 6:18 AM Jason Xing <kerneljasonxing@...il.com> wrote:
>
> From: Jason Xing <kernelxing@...cent.com>
>
> Let it be tuned in per netns by admins.
>
> Signed-off-by: Jason Xing <kernelxing@...cent.com>
> ---
> v2
> Link: https://lore.kernel.org/all/66fa81b2ddf10_17948d294bb@willemb.c.googlers.com.notmuch/
> 1. remove the static global from sock.c
> 2. reorder the tests
> 3. I removed the patch [1/3] because I made one mistake
> 4. I also removed the patch [2/3] because Willem soon will propose a
> packetdrill test that is better.
> Now, I only need to write this standalone patch.
> ---
> include/net/netns/core.h | 1 +
> include/net/sock.h | 2 --
> net/core/net_namespace.c | 1 +
> net/core/skbuff.c | 2 +-
> net/core/sock.c | 2 --
> net/core/sysctl_net_core.c | 18 +++++++++---------
> 6 files changed, 12 insertions(+), 14 deletions(-)
>
> diff --git a/include/net/netns/core.h b/include/net/netns/core.h
> index 78214f1b43a2..ef8b3105c632 100644
> --- a/include/net/netns/core.h
> +++ b/include/net/netns/core.h
> @@ -23,6 +23,7 @@ struct netns_core {
> #if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
> struct cpumask *rps_default_mask;
> #endif
> + int sysctl_tstamp_allow_data;
> };
This adds another hole for no good reason.
Please put this after sysctl_txrehash.
Powered by blists - more mailing lists