[rtems-libbsd commit] dpaa: Reduce receive buffer seed
Sebastian Huber
sebh at rtems.org
Mon Oct 23 07:27:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: b1fd51c25e9a0199cd57d44e6812a7a8abb3895e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b1fd51c25e9a0199cd57d44e6812a7a8abb3895e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 20 14:55:13 2017 +0200
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().
---
linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index 3861420..6e12c42 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;
More information about the vc
mailing list