summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2014-05-29 16:31:01 +0300
committerRoland Dreier <roland@purestorage.com>2014-05-29 21:12:58 -0700
commit61565013cf7024e8aa52e0a8e78208a955ce7e5f (patch)
treeb2ae8a1e5f0937f6c3089b949cdac8a982ad8416 /drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
parentbc82878baa10c2a6a4a6affaf52c152935112142 (diff)
downloadop-kernel-dev-61565013cf7024e8aa52e0a8e78208a955ce7e5f.zip
op-kernel-dev-61565013cf7024e8aa52e0a8e78208a955ce7e5f.tar.gz
IB/mlx4: SET_PORT called by mlx4_ib_modify_port should be wrapped
mlx4_ib_modify_port is invoked in IB for resetting the Q_Key violations counters and for modifying the IB port capability flags. For example, when opensm is started up on the hypervisor, mlx4_ib_modify_port is called to set the port's IsSM flag. In multifunction mode, the SET_PORT command used in this flow should be wrapped (so that the PF port capability flags are also tracked, thus enabling the aggregate of all the VF/PF capability flags to be tracked properly). The procedure mlx4_SET_PORT() in main.c is also renamed to mlx4_ib_SET_PORT() to differentiate it from procedure mlx4_SET_PORT() in port.c. mlx4_ib_SET_PORT() is used exclusively by mlx4_ib_modify_port(). Finally, the CM invokes ib_modify_port() to set the IsCMSupported flag even when running over RoCE. Therefore, when RoCE is active, mlx4_ib_modify_port should return OK unconditionally (since the capability flags and qkey violations counter are not relevant). 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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/resource_tracker.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud