Skip to content

Commit 51b17c9

Browse files
cjubrankuba-moo
authored andcommitted
net/mlx5: Restore missing scheduling node cleanup on vport enable failure
Restore the __esw_qos_free_node() call removed by the offending commit. Fixes: 97733d1 ("net/mlx5: Add traffic class scheduling support for vport QoS") Signed-off-by: Carolina Jubran <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Signed-off-by: Mark Bloch <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3c114fb commit 51b17c9

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/esw

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ static int mlx5_esw_qos_vport_enable(struct mlx5_vport *vport, enum sched_node_t
11221122
vport->qos.sched_node = sched_node;
11231123
err = esw_qos_vport_enable(vport, type, parent, extack);
11241124
if (err) {
1125+
__esw_qos_free_node(sched_node);
11251126
esw_qos_put(esw);
11261127
vport->qos.sched_node = NULL;
11271128
}

0 commit comments

Comments
 (0)