net/ena: set IO ring size to valid value
authorMichal Krawczyk <mk@semihalf.com>
Wed, 8 Apr 2020 08:29:08 +0000 (10:29 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commitbadc3a6aa133a886a61b9e3ad666e5675f7ec3d3
treee105d25950098f96ebd1e60babaf7f953527c589
parentbde3b46f79b2356607fd1ce74ea7b48a9d8f886c
net/ena: set IO ring size to valid value

IO rings were configured with the maximum allowed size for the Tx/Rx
rings. However, the application could decide to create smaller rings.

This patch is using value stored in the ring instead of the value from
the adapter which is indicating the maximum allowed value.

Fixes: df238f84c0a2 ("net/ena: recreate HW IO rings on start and stop")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
drivers/net/ena/ena_ethdev.c