mlx4_core: Fix meaning of dev->caps.reserved_mtts
authorRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:16 +0000 (19:59 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:16 +0000 (19:59 -0700)
commit121964ec38d3e17b5ea6183b3c0571df2f4b0eb6
tree4146d90919dd8ccc2d363b879f8cdbed618a0abf
parentcf78237d7b0e683d172e40b1e85b26ca49a3cdba
mlx4_core: Fix meaning of dev->caps.reserved_mtts

Everything that uses caps.reserved_mtts expects it to be a count of MTT
segments, not MTT entries.  So convert the value that the FW gives us to
a count of segments.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c