summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmveth.h
diff options
context:
space:
mode:
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>2015-04-29 23:25:44 +0200
committerDavid S. Miller <davem@davemloft.net>2015-04-30 22:33:45 +0200
commitcd7c7ec3687986c71b48848637066d4460c92b95 (patch)
tree1996647d4a1c1308fcd51fd347a20036d5470338 /drivers/net/ethernet/ibm/ibmveth.h
parentMerge branch 'xgene-next' (diff)
downloadlinux-cd7c7ec3687986c71b48848637066d4460c92b95.tar.xz
linux-cd7c7ec3687986c71b48848637066d4460c92b95.zip
ibmveth: change rx buffer default allocation for CMO
This patch enables 64k rx buffer pools by default. If Cooperative Memory Overcommitment (CMO) is enabled, the number of 64k buffers is reduced to save memory. Cc: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmveth.h')
-rw-r--r--drivers/net/ethernet/ibm/ibmveth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmveth.h b/drivers/net/ethernet/ibm/ibmveth.h
index 1f37499d4398..0dc664bebd4b 100644
--- a/drivers/net/ethernet/ibm/ibmveth.h
+++ b/drivers/net/ethernet/ibm/ibmveth.h
@@ -104,7 +104,8 @@ static inline long h_illan_attributes(unsigned long unit_address,
static int pool_size[] = { 512, 1024 * 2, 1024 * 16, 1024 * 32, 1024 * 64 };
static int pool_count[] = { 256, 512, 256, 256, 256 };
-static int pool_active[] = { 1, 1, 0, 0, 0};
+static int pool_count_cmo[] = { 256, 512, 256, 256, 64 };
+static int pool_active[] = { 1, 1, 0, 0, 1};
#define IBM_VETH_INVALID_MAP ((u16)0xffff)