Skip to content

Commit

Permalink
northd: take into account qos_min_rate in port_has_qos_params
Browse files Browse the repository at this point in the history
Similar to qos_max_rate and qos_burst, take into account qos_min_rate in
port_has_qos_params routine.

Fixes: dbf12e5 ("qos: add support for port minimum bandwidth guarantee")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Ihar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
LorenzoBianconi authored and dceara committed Apr 6, 2023
1 parent b61e819 commit d2bf7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ free_chassis_queueid(struct hmap *set, const struct uuid *uuid,
static inline bool
port_has_qos_params(const struct smap *opts)
{
return (smap_get(opts, "qos_max_rate") ||
return (smap_get(opts, "qos_max_rate") || smap_get(opts, "qos_min_rate") ||
smap_get(opts, "qos_burst"));
}

Expand Down

0 comments on commit d2bf7ea

Please sign in to comment.