summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2007-06-26 15:55:28 +0300
committerRoland Dreier <rolandd@cisco.com>2007-07-09 20:12:26 -0700
commit149983af609e8f5c57157467baf8545d17b8a6a1 (patch)
tree4a8ea99e670a6e74b7b03122408a82d4c6e29518 /include/linux/mlx4/device.h
parent87427da55bc03dbce7906a5b09ed50279d654d28 (diff)
downloadop-kernel-dev-149983af609e8f5c57157467baf8545d17b8a6a1.zip
op-kernel-dev-149983af609e8f5c57157467baf8545d17b8a6a1.tar.gz
mlx4_core: Get the maximum message size from reported device capabilities
Get the maximum message size from the device capabilities returned from the QUERY_DEV_CAP firmware command, rather than hard-coding 2 GB. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/mlx4/device.h')
-rw-r--r--include/linux/mlx4/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index b372f59..8209387 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -172,6 +172,7 @@ struct mlx4_caps {
int num_pds;
int reserved_pds;
int mtt_entry_sz;
+ u32 max_msg_sz;
u32 page_size_cap;
u32 flags;
u16 stat_rate_support;
OpenPOWER on IntegriCloud