Re: [PATCH for-next] RDMA/hns: Create QP/CQ with selected QPN/CQN for bank load balance

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

 



On Fri, Nov 06, 2020 at 01:52:57AM +0000, liweihang wrote:

> There are 8 banks and each of them has a counter which represents
> how many QPs are using this bank. We first find the bank with the
> smallest count, and then try to find a QPN belongs to this bank
> according to the bitmap.  The ida will find an unused ID starting
> from 0, I think it can't meet our needs. If we use ida here, the
> code may looks like:

I don't understand, why wouldn't the ida give you a free QPN in a bank
directly?

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