mlx4_core: Fix XRC QPs detection in the resource tracker
authorYishai Hadas <yishaih@mellanox.com>
Thu, 1 Aug 2013 15:49:52 +0000 (18:49 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:21:31 +0000 (11:21 -0700)
commit5c5f3f0a74740c8f7bca8255741291bb0d2ebe4b
treecbfb99c06499fd0b18d975af6f4fc99e1022c38d
parentc095ba7224d8edc71dcef0d655911399a8bd4a3f
mlx4_core: Fix XRC QPs detection in the resource tracker

Recognize XRC QPs in the SR-IOV resource tracker based on transport
type.  The previous check didn't match IB_QPT_XRC_INI and caused an
invalid calculation for required mtt pages.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c