[openib-general] mthca calls ib_register_mad_agent() and implements ib_device.process_mad()?

Ralph Campbell ralphc at pathscale.com
Mon Dec 19 16:38:52 PST 2005


Can someone explain why the mthca driver calls
ib_register_mad_agent() and implements ib_device.process_mad()?
It looks like the later does the actual processing of MAD packets
for the SMA and PMA whereas the former doesn't seem to do anything
except cause the ib_mad module to be modprobe'd.

I understand the need to have ib_mad loaded before ib_mthca
since the call to ib_register_device() will cause ib_mad
to create QP 0 & 1.

Normally, it looks like ib_register_mad_agent() is used to
tell the ib_mad module to send MADs to agents like the
SM, CM, etc.

-- 
Ralph Campbell <ralphc at pathscale.com>




More information about the general mailing list