[openib-general] [RFC] [PATCH] ib_usa: export multicast and informinfo registration to userspace
Sean Hefty
mshefty at ichips.intel.com
Tue Feb 6 09:08:52 PST 2007
>>+static int process_mcast(struct usa_file *file, struct ib_usa_request *req,
>>+ int out_len)
>>+{
>>+ /* Only indirect requests are currently supported. */
>>+ if (!req->local)
>>+ return -ENOSYS;
>>+
>>+ switch (req->method) {
>>+ case IB_MGMT_METHOD_GET:
>>+ return get_mcast(file, req, out_len);
>>+ case IB_MGMT_METHOD_SET:
>>+ return join_mcast(file, req, out_len);
>>+ default:
>>+ return -EINVAL;
>
>
> Should leaving a multicast group also be supported ?
It is - just in a different way. Once a user has joined a multicast group or
registered for notices, they leave/unregister by issuing a 'free' request. The
majority of the code ends up being the same.
- Sean
More information about the general
mailing list