[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9a922d8b-507b-cc38-c006-46b859d49f49@nvidia.com>
Date: Thu, 3 Jun 2021 11:53:31 +0300
From: Dmytro Linkin <dlinkin@...dia.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
Jiri Pirko <jiri@...dia.com>,
"stephen@...workplumber.org" <stephen@...workplumber.org>,
"dsahern@...il.com" <dsahern@...il.com>,
Vlad Buslov <vladbu@...dia.com>,
Parav Pandit <parav@...dia.com>, Huy Nguyen <huyn@...dia.com>,
Saeed Mahameed <saeedm@...dia.com>
Subject: Re: [PATCH RESEND net-next v3 00/18] devlink: rate objects API
On 6/2/21 7:58 PM, Jakub Kicinski wrote:
> On Wed, 2 Jun 2021 15:17:13 +0300 dlinkin@...dia.com wrote:
>> From: Dmytro Linkin <dlinkin@...dia.com>
>>
>> Resending without RFC.
>>
>> Currently kernel provides a way to change tx rate of single VF in
>> switchdev mode via tc-police action. When lots of VFs are configured
>> management of theirs rates becomes non-trivial task and some grouping
>> mechanism is required. Implementing such grouping in tc-police will bring
>> flow related limitations and unwanted complications, like:
>> - tc-police is a policer and there is a user request for a traffic
>> shaper, so shared tc-police action is not suitable;
>> - flows requires net device to be placed on, means "groups" wouldn't
>> have net device instance itself. Taking into the account previous
>> point was reviewed a sollution, when representor have a policer and
>> the driver use a shaper if qdisc contains group of VFs - such approach
>> ugly, compilated and misleading;
>> - TC is ingress only, while configuring "other" side of the wire looks
>> more like a "real" picture where shaping is outside of the steering
>> world, similar to "ip link" command;
>>
>> According to that devlink is the most appropriate place.
>
> I don't think you researched TC well enough. But whatever, I'm tired
> of being the only one who pushes back given I neither work on or use
> any of these features.
>
> You need to provide a real implementation for this new uAPI, tho.
> netdevsim won't cut it.
>
+Saeed
The series is already big enough to add more patches to it and
implementation (mlx5_core) must go through Saeed. How would You like to
proceed?
Powered by blists - more mailing lists