]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iw_cxgb4: use tos when finding ipv6 routes
authorSteve Wise <swise@opengridcomputing.com>
Fri, 1 Feb 2019 20:44:53 +0000 (12:44 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:18:06 +0000 (16:18 -0700)
When IPv6 support was added, the correct tos was not passed to
cxgb_find_route6(). This potentially results in the wrong route entry.

Fixes: 830662f6f032 ("RDMA/cxgb4: Add support for active and passive open connection with IPv6 address")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c

index 0259198d594d2d07a8b866429737ac70f9331556..77efd4ae8e10351abdc6a4db1431071c7eba48d0 100644 (file)
@@ -2161,7 +2161,8 @@ static int c4iw_reconnect(struct c4iw_ep *ep)
                                           laddr6->sin6_addr.s6_addr,
                                           raddr6->sin6_addr.s6_addr,
                                           laddr6->sin6_port,
-                                          raddr6->sin6_port, 0,
+                                          raddr6->sin6_port,
+                                          ep->com.cm_id->tos,
                                           raddr6->sin6_scope_id);
                iptype = 6;
                ra = (__u8 *)&raddr6->sin6_addr;
@@ -3326,7 +3327,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
                                           laddr6->sin6_addr.s6_addr,
                                           raddr6->sin6_addr.s6_addr,
                                           laddr6->sin6_port,
-                                          raddr6->sin6_port, 0,
+                                          raddr6->sin6_port, cm_id->tos,
                                           raddr6->sin6_scope_id);
        }
        if (!ep->dst) {