net/bnxt: cap max Rx rings for Thor
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 14 Apr 2021 23:44:49 +0000 (16:44 -0700)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 19 Apr 2021 22:56:43 +0000 (00:56 +0200)
commitfe8dd26f86c78a4c8dad7adceec12f4dd561c435
treeb05294a720f2019a3a6cca8e79f36f306c232421
parente2895305a5b54a596b510f763c61652bf05e81db
net/bnxt: cap max Rx rings for Thor

For Thor devices, RSS table can only accommodate 512 Rx queues.
When RSS is enabled, Cap the max Rx rings to 512.
For non-RSS case, the number will be limited by number of VNICs.

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c