net/bnxt: fix stats context calculation
authorLance Richardson <lance.richardson@broadcom.com>
Fri, 4 Oct 2019 03:49:00 +0000 (20:49 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:32 +0000 (12:14 +0200)
commit74721ba062a84a951cb7d3201d61988b7ec54045
tree35511d0364a18dcf57bc6b66595992eb43e6919b
parent683e5cf79249d2628b7370beb7e39e040f5ec356
net/bnxt: fix stats context calculation

The required number of statistics contexts is computed as the sum
of the number of receive and transmit rings plus one for the async
completion ring. A statistics context is not actually required for
the async completion ring, so remove it from the calculation.

Fixes: bd0a14c99f65 ("net/bnxt: use dedicated CPR for async events")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c