Re: [PATCH rdma-next 05/15] IB/uverbs: Add flow_action create and destroy verbs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 20, 2018 at 03:01:36PM +0200, Leon Romanovsky wrote:

> +static int flow_action_esp_get_encap(struct ib_flow_spec_list *out,
> +				     struct uverbs_attr_bundle *attrs)
> +{
> +	struct ib_uverbs_flow_action_esp_encap uverbs_encap;
> +	int ret;
> +
> +	ret = uverbs_copy_from(&uverbs_encap, attrs,
> +			       UVERBS_ATTR_FLOW_ACTION_ESP_ENCAP);
> +	if (ret)
> +		return ret;
> +
> +	/* We currently support only one encap */
> +	if (uverbs_encap.next_ptr)
> +		return -EOPNOTSUPP;
> +
> +	if (uverbs_encap.type != IB_FLOW_SPEC_IPV4 &&
> +	    uverbs_encap.type != IB_FLOW_SPEC_IPV6)
> +		return -EOPNOTSUPP;
> +
> +	return parse_esp_ip(uverbs_encap.type,
> +			    (__force const void __user *)uverbs_encap.val_ptr,

This is supposed to be u64_to_user_ptr() not __force

That requires that RDMA_UAPI_PTR patch to be put in front of this
series.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux