[openib-general] [PATCH] IPOIB: Use a GRH when appropriate for unicast packets

Roland Dreier rdreier at cisco.com
Thu Jan 25 21:15:31 PST 2007


 > +		if ((ret = ib_init_ah_from_path(priv->ca,priv->port,pathrec,&av)))

kernel style is spaces after commas, like

	ib_init_ah_from_path(priv->ca, priv->port, pathrec, &av)

also, I really prefer to see code like this written as

	ret = ib_init_ah_from_path(priv->ca, priv->port, pathrec, &av);
	if (ret) {

If the call fails, do you think

 > +			ipoib_dbg(priv, "PathRec init_ah failed %d for GID "

printing the error message with ipoib_dbg() is a good idea?  It means
the failure will be invisible unless someone explicitly enables
debugging.

 > +			// FIXME: Should this be in ib_init_ah_from_path?
 > +			av.static_rate = pathrec->rate;

Yes, I think this should be in ib_init_ah_from_path() ... I don't see
any reason why it shouldn't.  I suspect the reason is historical,
because ib_init_ah_from_path() predates the switch to having
av.static_rate mean the real data rate of to use (rather than the
relative inter-packet delay static rate that the IB spec for verbs
talks about).

BTW do SRP and iSER already work through routers?

 - R.




More information about the general mailing list