net/mlx4: Warn users of depracated QoS Firmware
A new capability bit was introduced in the past to to differ devices using the QoS ETS feature. The old was deprecated since then. If driver sees device which set only the old capabilty, it will print warning to user suggesting to upgrade the FW. Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cda373f484
commit
3742cc6551
@@ -528,6 +528,14 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
||||
dev->caps.alloc_res_qp_mask =
|
||||
(dev->caps.bf_reg_size ? MLX4_RESERVE_ETH_BF_QP : 0) |
|
||||
MLX4_RESERVE_A0_QP;
|
||||
|
||||
if (!(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ETS_CFG) &&
|
||||
dev->caps.flags & MLX4_DEV_CAP_FLAG_SET_ETH_SCHED) {
|
||||
mlx4_warn(dev, "Old device ETS support detected\n");
|
||||
mlx4_warn(dev, "Consider upgrading device FW.\n");
|
||||
dev->caps.flags2 |= MLX4_DEV_CAP_FLAG2_ETS_CFG;
|
||||
}
|
||||
|
||||
} else {
|
||||
dev->caps.alloc_res_qp_mask = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user