Date: Fri, 30 Mar 2018 18:29:14 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r331779 - stable/11/sys/ofed/drivers/infiniband/core Message-ID: <201803301829.w2UITEwX072557@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Mar 30 18:29:14 2018 New Revision: 331779 URL: https://svnweb.freebsd.org/changeset/base/331779 Log: MFC r330496: Need to check for IPv6 linklocal address inside rdma_resolve_addr() in ibcore. Sponsored by: Mellanox Technologies Modified: stable/11/sys/ofed/drivers/infiniband/core/ib_cma.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/ofed/drivers/infiniband/core/ib_cma.c ============================================================================== --- stable/11/sys/ofed/drivers/infiniband/core/ib_cma.c Fri Mar 30 18:28:22 2018 (r331778) +++ stable/11/sys/ofed/drivers/infiniband/core/ib_cma.c Fri Mar 30 18:29:14 2018 (r331779) @@ -107,6 +107,7 @@ const char *__attribute_const__ rdma_event_msg(enum rd } EXPORT_SYMBOL(rdma_event_msg); +static int cma_check_linklocal(struct rdma_dev_addr *, struct sockaddr *); static void cma_add_one(struct ib_device *device); static void cma_remove_one(struct ib_device *device, void *client_data); @@ -2807,6 +2808,10 @@ int rdma_resolve_addr(struct rdma_cm_id *id, struct so if (dst_addr->sa_family == AF_IB) { ret = cma_resolve_ib_addr(id_priv); } else { + ret = cma_check_linklocal(&id->route.addr.dev_addr, dst_addr); + if (ret) + goto err; + ret = rdma_resolve_ip(&addr_client, cma_src_addr(id_priv), dst_addr, &id->route.addr.dev_addr, timeout_ms, addr_handler, id_priv);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803301829.w2UITEwX072557>