From: Rahul Lakkireddy Date: Fri, 20 Nov 2015 13:13:37 +0000 (+0530) Subject: cxgbe: fix minimum descriptors requirement X-Git-Tag: spdx-start~7996 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ca0481dadec5998704b11f14f89afcc1db30c67f;p=dpdk.git cxgbe: fix minimum descriptors requirement Most dpdk examples and apps seem to initialize with a minimum of 128 rx descriptors and 512 tx descriptors for queue setup. However, CXGBE PMD enforces a minimum of 1024 descriptors. This causes the dpdk stack to return -EINVAL because the apps do not request the minimum required. The fix is to relax this enforcing in CXGBE PMD. A minimum of 128 descriptors seems to be a good number with the least impact on the performance. Fixes: 946c9ed95616 ("cxgbe: get descriptor limits") Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- diff --git a/drivers/net/cxgbe/cxgbe.h b/drivers/net/cxgbe/cxgbe.h index adc0d9222f..0201c99065 100644 --- a/drivers/net/cxgbe/cxgbe.h +++ b/drivers/net/cxgbe/cxgbe.h @@ -37,7 +37,7 @@ #include "common.h" #include "t4_regs.h" -#define CXGBE_MIN_RING_DESC_SIZE 1024 /* Min TX/RX descriptor ring size */ +#define CXGBE_MIN_RING_DESC_SIZE 128 /* Min TX/RX descriptor ring size */ #define CXGBE_MAX_RING_DESC_SIZE 4096 /* Max TX/RX descriptor ring size */ #define CXGBE_DEFAULT_TX_DESC_SIZE 1024 /* Default TX ring size */