svn commit: r336389 - head/sys/ofed/drivers/infiniband/core

Hans Petter Selasky hselasky at FreeBSD.org
Tue Jul 17 09:37:17 UTC 2018


Author: hselasky
Date: Tue Jul 17 09:37:16 2018
New Revision: 336389
URL: https://svnweb.freebsd.org/changeset/base/336389

Log:
  Add support for IPv6 multicast in ibcore.
  
  This change allows us to join IPv6 multicast networks.
  
  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	Tue Jul 17 09:36:04 2018	(r336388)
+++ head/sys/ofed/drivers/infiniband/core/ib_cma.c	Tue Jul 17 09:37:16 2018	(r336389)
@@ -4021,7 +4021,7 @@ static int cma_iboe_join_multicast(struct rdma_id_priv
 	mc->multicast.ib->rec.hop_limit = 1;
 	mc->multicast.ib->rec.mtu = iboe_get_mtu(ndev->if_mtu);
 
-	if (addr->sa_family == AF_INET) {
+	if (addr->sa_family == AF_INET || addr->sa_family == AF_INET6) {
 		if (gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) {
 			mc->multicast.ib->rec.hop_limit = IPV6_DEFAULT_HOPLIMIT;
 			if (!send_only) {


More information about the svn-src-head mailing list