summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-20 14:55:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-23 09:24:08 +0200
commitb1fd51c25e9a0199cd57d44e6812a7a8abb3895e (patch)
tree79f93ad828e7cb3f52748cb1155666e36a902fb4 /linux
parent33356a839f04c90c480b803165b8e7cc862ac932 (diff)
downloadrtems-libbsd-b1fd51c25e9a0199cd57d44e6812a7a8abb3895e.tar.bz2
dpaa: Reduce receive buffer seed
Seed the receive buffers of each affine software portal only with 8 mclusters (16KiB) and not 128 (256KiB). We have processor count affine software portals, see dpaa_bp_seed().
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index 3861420e..6e12c42e 100644
--- a/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
+++ b/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
@@ -2880,7 +2880,11 @@ static struct dpaa_bp *dpaa_bp_alloc(struct device *dev)
dpaa_bp->bpid = FSL_DPAA_BPID_INV;
dpaa_bp->percpu_count = devm_alloc_percpu(dev, *dpaa_bp->percpu_count);
+#ifndef __rtems__
dpaa_bp->config_count = FSL_DPAA_ETH_MAX_BUF_COUNT;
+#else /* __rtems__ */
+ dpaa_bp->config_count = 8;
+#endif /* __rtems__ */
dpaa_bp->seed_cb = dpaa_bp_seed;
dpaa_bp->free_buf_cb = dpaa_bp_free_pf;