cxgbe: fix minimum descriptors requirement
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 20 Nov 2015 13:13:37 +0000 (18:43 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 13:56:08 +0000 (14:56 +0100)
commitca0481dadec5998704b11f14f89afcc1db30c67f
tree1ec170d902273bfa562a1b52be35c67d5da9cafa
parent4ba427971a9fab416e207f1acd091b8a66d6d4b6
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 <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
drivers/net/cxgbe/cxgbe.h