[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <66faefc2d2802_18b995294fe@willemb.c.googlers.com.notmuch>
Date: Mon, 30 Sep 2024 14:36:50 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Eric Dumazet <edumazet@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Willem de Bruijn <willemb@...gle.com>,
Jeffrey Ji <jeffreyji@...gle.com>,
netdev@...r.kernel.org,
eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next 1/2] net: add IFLA_MAX_PACING_OFFLOAD_HORIZON
device attribute
Eric Dumazet wrote:
> Some network devices have the ability to offload EDT (Earliest
> Departure Time) which is the model used for TCP pacing and FQ
> packet scheduler.
>
> Some of them implement the timing wheel mechanism described in
> https://saeed.github.io/files/carousel-sigcomm17.pdf
> with an associated 'timing wheel horizon'.
>
> This patch adds dev->max_pacing_offload_horizon expressing
> this timing wheel horizon in nsec units.
>
> This is a read-only attribute.
>
> Unless a driver sets it, dev->max_pacing_offload_horizon
> is zero.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Reviewed-by: Willem de Bruijn <willemb@...gle.com>
> @@ -2030,6 +2034,7 @@ static const struct nla_policy ifla_policy[IFLA_MAX+1] = {
> [IFLA_ALLMULTI] = { .type = NLA_REJECT },
> [IFLA_GSO_IPV4_MAX_SIZE] = { .type = NLA_U32 },
> [IFLA_GRO_IPV4_MAX_SIZE] = { .type = NLA_U32 },
> + [IFLA_MAX_PACING_OFFLOAD_HORIZON]= { .type = NLA_REJECT },
nit: checkpatch does not like the lack of whitespace before assignment
in such C99 designated initializers. Probably just stylistic.
Powered by blists - more mailing lists