net/bnxt: refactor ring allocation
authorLance Richardson <lance.richardson@broadcom.com>
Sun, 2 Jun 2019 17:42:43 +0000 (13:42 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:29 +0000 (23:54 +0900)
commit61d2b9a71dc611e7f683466abf3402005953c752
treefb45deed7b2c75810809bfcd244d15a1b29bbdb1
parentbb0546edfa6776b93b3011618dfc4f2af6a51f76
net/bnxt: refactor ring allocation

Reduce code duplication and prepare for supporting hardware with
different ring allocation requirements by refactoring ring
allocation code.

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