[openib-general] semantics of process_mad?

Michael S. Tsirkin mst at mellanox.co.il
Sun Sep 12 01:01:09 PDT 2004


Hello!
Quoting r. Hal Rosenstock (halr at voltaire.com) "Re: [openib-general] semantics of process_mad?":
> On Fri, 2004-09-10 at 16:49, Roland Dreier wrote:
> > I'm now looking at implementing the process_mad method:
> > 
> > 	int	 (*process_mad)(struct ib_device *device,
> > 				int process_mad_flags,
> > 				struct ib_mad *in_mad,
> > 				struct ib_mad *out_mad);
> > 
> > First of all, it seems that a port_num parameter needs to be added.
> Agreed. How did this get missed 'till now ? (That's rhetorical)...

What happends if a trap needs to be sent as a result of this mad
(consider, e.g. if there is a bkey violation)?
I think you might need to pass additional info needed by the trap to be
generated.

MST



More information about the general mailing list