net/mlx4_core: Fix reading HCA max message size in mlx4_QUERY_DEV_CAP
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 21 Apr 2015 12:46:34 +0000 (15:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2015 21:36:08 +0000 (17:36 -0400)
commitfab9adfb71fc8690e20c3c280d39d49c8f4a3f0a
tree7fdb13f079be6b3b73ec8118aae3b475ae88e457
parent3c7151275c0c9a80c3375f9874b1c7129a105eea
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.

Fixes: 0b131561a7d6 ('net/mlx4_en: Add Flow control statistics [..]')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c