]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8539818b21fdb15b04be3d93cc6a10e257589869
tree657babf7c45990ec73afa6c6aba6986a79da1286
parent3c1a793c68ddad1b84a9eb8ee779645be551b541
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