Re: [PATCH 1/3] net: mana: Add speed support in mana_get_link_ksettings
From: Andrew Lunn
Date: Tue Mar 25 2025 - 12:45:20 EST
> The QoS control is at the hardware/firmware level and applies to the
> egress rate.
egress relative to the VM? So what the VM sends to the hypervisor.
There is no restriction the other way, hypervisor to the VM?
That is not what link modes do. 10Mbps is the limit in both
directions.
> > Also, if i understand correctly MANA is a virtual device and this is
> > the VM side of it. If this is used for bandwidth limitation, why is
> > the VM controlling this, not the hypervisor? What is the security
> > model?
> >
> In certain cluster and hardware versions, Azure allows this API to
> restrict the bandwidth limit to a lesser value than what was configured
> by the Azure control plane. The device will not allow a higher limit
> than what was configured through the Azure control plane to be set by
> the VM through this API.
So all this information needs adding to the commit message. When you
are using an API in a strange way, you have to expect questions to be
asked, and you can save a lot of time by answering those questions in
the commit message, before they are even asked.
So, i think this is the wrong API.
Please implement it as a TC offload. I'm not an TC expert, but htb
might work.
Andrew