[ofa-general] Re: [PATCH] IB/core/user_mad.c: Add support for issmdisabled
Roland Dreier
rdreier at cisco.com
Thu Mar 29 12:10:57 PDT 2007
> > I don't see any reason for this change -- in fact the "* 2" looks
> > buggy to me. Probably a historical relic -- the only access to the
> > dev_map bitmap that I see uses at most IB_UMAD_MAX_PORTS bits.
>
> Are you sure ? Don't issm files need a duplicated set of dev_map bits ?
Well, read the code. The only use of dev_map that I can find is
port->dev_num = find_first_zero_bit(dev_map, IB_UMAD_MAX_PORTS);
which doesn't look past bit # IB_UMAD_MAX_PORTS. Am I missing something?
> By clean up, (aside from static const), is there more than what you
> indicate below in making issm and issmdisabled share the same open/close
> routines ?
No, I just meant convert that to static const. And unify the
open/close routines. Although maybe the cleanest way to unify the
code is to leave the properties on the stack and set it up before the
call to ib_modify_port() depending on which file is being accessed.
- R.
More information about the general
mailing list