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