mlx4_core: Fix mtt profile issue
authorMarcel Apfelbaum <marcela@dev.mellanox.co.il>
Thu, 19 Jan 2012 09:45:31 +0000 (09:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2012 20:08:44 +0000 (15:08 -0500)
commit9fd7a1e147bd41fb999a58da8a8826b9f3415384
tree657babf7c45990ec73afa6c6aba6986a79da1286
parenteb41049f2f5eee1525fe1c699e6b1f03c8c51532
mlx4_core: Fix mtt profile issue

Num mtts from profile is really the number of mtt segments.
Thus, in make profile, to get the proper number of MTT entries,
must multiply num_mtts by mtts per segment.

Signed-off-by: Marcel Apfelbaum <marcela@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/profile.c