Re: [PATCH v4 for-next 08/12] RDMA/hns: Add method to query WQE buffer's address

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

 



On Thu, Jul 29, 2021 at 10:19:19AM +0800, Wenpeng Liang wrote:

>  DECLARE_UVERBS_NAMED_OBJECT(HNS_IB_OBJECT_DCA_MEM,
>  			    UVERBS_TYPE_ALLOC_IDR(dca_cleanup),
>  			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_REG),
>  			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_DEREG),
>  			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_SHRINK),
>  			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_ATTACH),
> -			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_DETACH));
> +			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_DETACH),
> +			    &UVERBS_METHOD(HNS_IB_METHOD_DCA_MEM_QUERY));

These lists should be kept sorted in each patch

> +struct hns_dca_query_resp {
> +	u64 mem_key;
> +	u32 mem_ofs;
> +	u32 page_count;
> +};

This is strange, why in a public header, why have the query_dca_mem
function at all? Just inline it and remove the struct entirely.

Jason



[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