Commit 470b747
net/mlx5: Disable QoS when min_rates on all VFs are zero
Currently when QoS is enabled for VF and any min_rate is configured,
the driver sets bw_share value to at least 1 and doesn’t allow to set
it to 0 to make minimal rate unlimited. It means there is always a
minimal rate configured for every VF, even if user tries to remove it.
In order to make QoS disable possible, check whether all vports have
configured min_rate = 0. If this is true, set their bw_share to 0 to
disable min_rate limitations.
Fixes: c9497c9 ("net/mlx5: Add support for setting VF min rate")
Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>1 parent 1ce5fc7 commit 470b747
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2222 | 2222 | | |
2223 | 2223 | | |
2224 | 2224 | | |
2225 | | - | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2226 | 2228 | | |
2227 | 2229 | | |
2228 | | - | |
| 2230 | + | |
2229 | 2231 | | |
2230 | 2232 | | |
| 2233 | + | |
2231 | 2234 | | |
2232 | 2235 | | |
2233 | 2236 | | |
| |||
2240 | 2243 | | |
2241 | 2244 | | |
2242 | 2245 | | |
2243 | | - | |
| 2246 | + | |
2244 | 2247 | | |
2245 | | - | |
| 2248 | + | |
2246 | 2249 | | |
2247 | 2250 | | |
2248 | 2251 | | |
| |||
2267 | 2270 | | |
2268 | 2271 | | |
2269 | 2272 | | |
2270 | | - | |
2271 | 2273 | | |
2272 | 2274 | | |
2273 | 2275 | | |
| |||
2292 | 2294 | | |
2293 | 2295 | | |
2294 | 2296 | | |
2295 | | - | |
2296 | | - | |
| 2297 | + | |
2297 | 2298 | | |
2298 | 2299 | | |
2299 | 2300 | | |
| |||
0 commit comments