mlx4_core: Fix parsing of reserved EQ cap
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Thu, 12 Nov 2009 23:51:16 +0000 (15:51 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 12 Nov 2009 23:51:16 +0000 (15:51 -0800)
Value returned by firmware is the actual value, not a log.

Signed-off-by: Liran Liss <liranl@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/fw.c

index 7194be3a28945c419e892bd6c790fb97e1b55f76..04f42ae1eda092d9650af5ef23d16a1b9efdbf52 100644 (file)
@@ -236,7 +236,7 @@ int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
        MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MPT_OFFSET);
        dev_cap->max_mpts = 1 << (field & 0x3f);
        MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_EQ_OFFSET);
-       dev_cap->reserved_eqs = 1 << (field & 0xf);
+       dev_cap->reserved_eqs = field & 0xf;
        MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_EQ_OFFSET);
        dev_cap->max_eqs = 1 << (field & 0xf);
        MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_MTT_OFFSET);