[ofa-general] [PATCH] opensm: set hop limit when creating ipoib multicast groups
Rolf Manderscheid
rvm at obsidianresearch.com
Thu Aug 30 08:48:12 PDT 2007
Hi Sasha,
This patch sets the hop limit for the IPv4 broadcast groups so that broadcasts work
through IB routers.
Signed-off-by: Rolf Manderscheid <rvm at obsidianresearch.com>
---
diff --git a/opensm/opensm/osm_prtn.c b/opensm/opensm/osm_prtn.c
index 46ee429..fc000b1 100644
--- a/opensm/opensm/osm_prtn.c
+++ b/opensm/opensm/osm_prtn.c
@@ -213,7 +213,7 @@ ib_api_status_t osm_prtn_add_mcgroup(osm_log_t * p_log,
mc_rec.pkey = pkey;
mc_rec.rate = (rate ? rate : OSM_DEFAULT_MGRP_RATE) | (2 << 6); /* 10Gb/sec */
mc_rec.pkt_life = OSM_DEFAULT_SUBNET_TIMEOUT;
- mc_rec.sl_flow_hop = ib_member_set_sl_flow_hop(p->sl, 0, 0);
+ mc_rec.sl_flow_hop = ib_member_set_sl_flow_hop(p->sl, 0, 0xff);
/* Scope in MCMemberRecord (if present) needs to be consistent with MGID */
mc_rec.scope_state =
ib_member_set_scope_state(scope ? scope : OSM_DEFAULT_MGRP_SCOPE,
More information about the general
mailing list