Re: [PATCH for-next v1] RDMA/vmw_pvrdma: Use resource ids from physical device if available

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

 



On 10/15/19 10:06 AM, "Jason Gunthorpe" <jgg@xxxxxxxx> wrote:
> On Sat, Oct 12, 2019 at 07:03:55AM +0000, Adit Ranadive wrote:
>> On 10/8/19, 11:15 AM, "Jason Gunthorpe" <jgg@xxxxxxxx> wrote:
>>>
>>> On Thu, Sep 19, 2019 at 08:24:56PM +0000, Adit Ranadive wrote:
>>>
>>>>  
>>>> +	if (!qp->is_kernel) {
>>>> +		if (ucmd.flags == PVRDMA_USER_QP_CREATE_USE_RESP) {
>>>
>>> Why does this flag exist? Don't old userspaces pass in a 0 length?
>>> Just use the length to signal new userspace?
>>
>> I did have that in an earlier version but we decided it to make it more
>> explicit. It would be easier to add another flag later on if required
>> than to check the length (which might be same).
> 
> You should add a flag if either the length or detecting value == 0 is
> not sufficient to detect the new support. No reason to add things
> until this situation comes up
> 
> Jason
> 

It seemed a bit hacky to me but if that's better for now, then sure.
Will send a v2 for both.

Thanks,
Adit




[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