[dpdk-dev] [PATCH 1/2] bnx2x: fix maximum PF queues

Harish Patil harish.patil at qlogic.com
Tue Oct 11 16:22:20 CEST 2016


>

>On Wed, 2016-10-05 at 22:36 -0700, Rasesh Mody wrote:
>> Fix the max number of PF rx/tx queues. Set the value based
>> on BNX2X_MAX_RSS_COUNT() rather than hard coding it to 128.
>> 
>> Fixes: 540a211 ("bnx2x: driver core")
>> 
>> Signed-off-by: Rasesh Mody <rasesh.mody at qlogic.com>
>> ---
>>  drivers/net/bnx2x/bnx2x.c |    4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c
>> index a49a07f..2bb4a84 100644
>> --- a/drivers/net/bnx2x/bnx2x.c
>> +++ b/drivers/net/bnx2x/bnx2x.c
>> @@ -9556,8 +9556,8 @@ static void bnx2x_init_rte(struct bnx2x_softc *sc)
>>  		sc->max_rx_queues = min(BNX2X_VF_MAX_QUEUES_PER_VF,
>>  					sc->igu_sb_cnt);
>>  	} else {
>> -		sc->max_tx_queues = 128;
>> -		sc->max_rx_queues = 128;
>> +		sc->max_rx_queues = BNX2X_MAX_RSS_COUNT(sc);
>> +		sc->max_tx_queues = sc->max_rx_queues;
>>  	}
>>  }
>
>Technically, I think max_tx_queues would be max_rx_queues * max_cos.
>However, I don't think there are any DPDK applications that would take
>advantage of this.
>
>Acked-By: Chas Williams <3chas3 at gmail.com>
>

Thanks Chas.
Ideally yes that’s the case.
But the driver doesn’t support asymmetrical no. of rx/tx queues, its only
the queue-pairs and hence RX=TX.
Many places in the driver assumes rx/tx queues are same and loop on rss_id
to access the corresponding tss_id.

Thanks,
Harish 



More information about the dev mailing list