summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>2016-10-21 04:43:42 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-22 17:08:07 -0400
commit0e191827383a6503a3bc547e63c74ff093f450f5 (patch)
tree90e5ea359cb9cdebe3cd56ecf2dff09f41dd2e18 /include
parent837d4eb6ed7cb0341079fac97e3037df6bef7482 (diff)
downloadlinux-stable-0e191827383a6503a3bc547e63c74ff093f450f5.tar.gz
linux-stable-0e191827383a6503a3bc547e63c74ff093f450f5.tar.bz2
linux-stable-0e191827383a6503a3bc547e63c74ff093f450f5.zip
qed*: Reduce the memory footprint for Rx path
With the current default values for Rx path i.e., 8 queues of 8Kb entries each with 4Kb size, interface will consume 256Mb for Rx. The default values causing the driver probe to fail when the system memory is low. Based on the perforamnce results, rx-ring count value of 1Kb gives the comparable performance with Rx coalesce timeout of 12 seconds. Updating the default values. Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/qed/qed_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h
index f9ae903bbb84..8978a60371f4 100644
--- a/include/linux/qed/qed_if.h
+++ b/include/linux/qed/qed_if.h
@@ -146,6 +146,7 @@ enum qed_led_mode {
#define DIRECT_REG_RD(reg_addr) readl((void __iomem *)(reg_addr))
#define QED_COALESCE_MAX 0xFF
+#define QED_DEFAULT_RX_USECS 12
/* forward */
struct qed_dev;