]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffb9db4d2f1e0251fe21814da86662fcf24860d1
tree7fdb13f079be6b3b73ec8118aae3b475ae88e457
parent04c96f6960f4d0a43519c627a2eb84c73b5456d2
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: 6e8045147fb4 ('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