[openib-general] Question on handle_outgoing_smp
root
root at DYN318430BLD.linux.local
Tue Nov 9 14:06:47 PST 2004
In following code :
if (smi_check_local_dr_smp(smp, mad_agent->device, mad_agent->port_num)) {
...
ret = mad_agent->device->process_mad(
mad_agent->device,
0,
mad_agent->port_num,
smp->dr_slid, /* ? */
(struct ib_mad *)smp,
(struct ib_mad *)&mad_priv->mad);
How do we guarantee that the process_mad() was supplied (not NULL) ?
That is if smi_check_local_smp didn't get called via
smi_check_local_dr_smp ?
thx,
- KK
More information about the general
mailing list