net/bnxt: increase size of Rx CQ
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 26 Oct 2020 03:56:13 +0000 (20:56 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:03 +0000 (23:35 +0100)
LRO aka TPA and jumbo frame support uses aggregation ring for placing
Rx buffers. These features can generate multiple Rx completions for a
single Rx packet. Increase size of Rx Completion Queue to handle TPA
and aggregation ring events.

Fixes: daef48efe5e5 ("net/bnxt: support set MTU")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Qingmin Liu <qingmin.liu@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
drivers/net/bnxt/bnxt_ring.h

index daf9804..3d81f61 100644 (file)
@@ -27,7 +27,7 @@
 #define DEFAULT_RX_RING_SIZE   256
 #define DEFAULT_TX_RING_SIZE   256
 
-#define AGG_RING_SIZE_FACTOR   2
+#define AGG_RING_SIZE_FACTOR   4
 #define AGG_RING_MULTIPLIER    2
 
 /* These assume 4k pages */