diff options
| author | Steve Wise <swise@opengridcomputing.com> | 2019-02-01 12:44:41 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:50:21 +0100 |
| commit | 8931b890696a7236b3dd95e4eb6c4bca7f42de4e (patch) | |
| tree | 6cc686a8daba943cf7ff6255698c020813f0517f /drivers/infiniband/hw | |
| parent | 4e07cae06ffc3f725692bd6534ce71d623e4bfa6 (diff) | |
| download | linux-8931b890696a7236b3dd95e4eb6c4bca7f42de4e.tar.gz linux-8931b890696a7236b3dd95e4eb6c4bca7f42de4e.tar.bz2 linux-8931b890696a7236b3dd95e4eb6c4bca7f42de4e.zip | |
iw_cxgb4: use tos when importing the endpoint
[ Upstream commit cb3ba0bde881f0cb7e3945d2a266901e2bd18c92 ]
import_ep() is passed the correct tos, but doesn't use it correctly.
Fixes: ac8e4c69a021 ("cxgb4/iw_cxgb4: TOS support")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw')
| -rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 1b3d014fa1d6..3c8b7eae918c 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -2076,7 +2076,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, } else { pdev = get_real_dev(n->dev); ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t, - n, pdev, 0); + n, pdev, rt_tos2priority(tos)); if (!ep->l2t) goto out; ep->mtu = dst_mtu(dst); |
