[openib-general] Sending/Receiving MAD packets from user-space.

Hal Rosenstock halr at voltaire.com
Fri Sep 30 06:39:36 PDT 2005


On Fri, 2005-09-30 at 02:31, Abhijit Gadgil wrote:
> I am trying to use MAD services from a user-land application. Basically
> I want to do few things like registering to traps/generating Multicast
> Send requests from user-space using Userspace VAPI.

Is this OpenIB or gen1 ?

> After reading through some code in osmtest.c, I couldn't figure out
> whether it is using the Userspace VAPI or through a kernel module Kernel
> space VAPI. Can someone point to me how I should get going about it? 

It uses the API in osm_vendor_sa_api.

> The library libopensm.a or libosmvendor.a can be used for this? However,
> I am not too sure whether it is using the user mode Verbs API or not. 

For OpenIB, the implementation is osm_vendor_ibumad_sa.c. This goes
through libibumad (and the user_mad kernel module).

Note that there may be a more OpenIB style user SA client in the future
but this is usable now.

-- Hal




More information about the general mailing list