>>+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 _______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general