svn commit: r330496 - head/sys/ofed/drivers/infiniband/core
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Mar 5 12:04:35 UTC 2018
Author: hselasky
Date: Mon Mar 5 12:04:34 2018
New Revision: 330496
URL: https://svnweb.freebsd.org/changeset/base/330496
Log:
Need to check for IPv6 linklocal address inside rdma_resolve_addr() in ibcore.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/ofed/drivers/infiniband/core/ib_cma.c
Modified: head/sys/ofed/drivers/infiniband/core/ib_cma.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/ib_cma.c Mon Mar 5 11:59:54 2018 (r330495)
+++ head/sys/ofed/drivers/infiniband/core/ib_cma.c Mon Mar 5 12:04:34 2018 (r330496)
@@ -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);
More information about the svn-src-head
mailing list