IB/mlx5: Fix RoCE Address Path fields
authorMajd Dibbiny <majd@mellanox.com>
Mon, 30 Oct 2017 12:23:14 +0000 (14:23 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 18:53:22 +0000 (13:53 -0500)
commit2b621851acb34762ca893b2528823215e0d4b98c
treed5f815f3b68c73fa2baea4f4678602bc593e4867
parent31fde034a8bd964a5c7c1a5663fc87a913158db2
IB/mlx5: Fix RoCE Address Path fields

When working over a RoCE network, the UDP source port should be set only
for statically connected QPs (RC, UC and XRC).

Fixes: 2811ba51b049 ("IB/mlx5: Add RoCE fields to Address Vector")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c