On Mon, Aug 19, 2013 at 01:05:04PM -0700, Jeff Squyres wrote:
> +int uv_cmd_query_port_max_datagram(struct ibv_context *context, uint8_t
> port_num,
> + uint32_t *max_datagram,
> + struct uv_query_port_max_datagram *cmd,
> + size_t cmd_size)
> +{
> + struct uv_query_port_max_datagram_resp resp;
> +
> + if (abi_ver < 7)
> + return -ENOSYS;
What about doing query port in this case and returning that value,
decoded to an enum? Otherwise apps have to include that logic anyhow.
I'm assuming the kernel will do basically the same?
Bascially, the only failure for this call should be due to a bad port
number..
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html