History

net/mlx4_core: Fix reading HCA max message size in mlx4_QUERY_DEV_CAP

Currently we parse max_msg_sz from the wrong offset in QUERY_DEV_CAP, fix to use the right offset.

Eran Ben Elisha committed 11 years ago

Commit fab9adf1 parent 3c715121 file · +1 −1Browse files

Unified · Split

drivers/net/ethernet/mellanox/mlx4/fw.c+1−1
@@ -781,10 +781,10 @@ int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) · 780 unmodified lines
781781 MLX4_GET(field, outbox, QUERY_DEV_CAP_VL_PORT_OFFSET);
782782 dev_cap->num_ports = field & 0xf;
783783 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MSG_SZ_OFFSET);
784+ dev_cap->max_msg_sz = 1 << (field & 0x1f);
784785 MLX4_GET(field, outbox, QUERY_DEV_CAP_PORT_FLOWSTATS_COUNTERS_OFFSET);
785786 if (field & 0x10)
786787 dev_cap->flags2 |= MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN;
787− dev_cap->max_msg_sz = 1 << (field & 0x1f);
788788 MLX4_GET(field, outbox, QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET);
789789 if (field & 0x80)
790790 dev_cap->flags2 |= MLX4_DEV_CAP_FLAG2_FS_EN;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t