]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Check if Granular QoS per VF has been enabled before updating QP qos_vport
authorIdo Shamay <idos@mellanox.com>
Mon, 5 Jun 2017 07:44:56 +0000 (10:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 15:29:54 +0000 (11:29 -0400)
commit8b5fe2030439bdbf69ae1044d99dfeb1c40e39dd
treef559fa739410f2418131216e8376db2f55771cbf
parentd6399cabff9a1dbf794e205955a40840c369e37a
net/mlx4: Check if Granular QoS per VF has been enabled before updating QP qos_vport

The Granular QoS per VF feature must be enabled in FW before it can be
used.

Thus, the driver cannot modify a QP's qos_vport value (via the UPDATE_QP FW
command) if the feature has not been enabled -- the FW returns an error if
this is attempted.

Fixes: 453c6b7995fb ("net/mlx4: Added qos_vport QP configuration in VST mode")
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c