net/bnxt: fix ring alignment for Thor-based adapters
authorLance Richardson <lance.richardson@broadcom.com>
Fri, 4 Oct 2019 03:48:56 +0000 (20:48 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:32 +0000 (12:14 +0200)
commit17766722cc45c21ee80a713a25414e62735f004e
tree7a86b76a5db83cc36a062d63a15fca06671b7d06
parentcc5e26b8ef98f6e10206245ab0ad578511ae5ed2
net/bnxt: fix ring alignment for Thor-based adapters

When using transmit/receive queue sizes smaller than 256, alignment
requirements are not being met for Thor-based adapters. Fix by
forcing memory addresses used for transmit/receive/aggregation ring
allocations to be on 4K boundaries.

Fixes: f8168ca0e690 ("net/bnxt: support thor controller")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ring.c