[PATCH 01/44] leon, grspw: rxPktSize must set DMA RX max length
Daniel Hellstrom
daniel at gaisler.com
Fri Mar 3 14:56:34 UTC 2017
---
c/src/lib/libbsp/sparc/shared/spw/grspw.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grspw.c
index fd21303..661ec6c 100644
--- a/c/src/lib/libbsp/sparc/shared/spw/grspw.c
+++ b/c/src/lib/libbsp/sparc/shared/spw/grspw.c
@@ -553,9 +553,11 @@ int grspw_device_init(GRSPW_DEV *pDev)
pDev->txhbufsize = value->i;
value = drvmgr_dev_key_get(pDev->dev, "rxPktSize", DRVMGR_KT_INT);
- if ( value )
+ if ( value ) {
pDev->rxbufsize = value->i;
-
+ pDev->config.rxmaxlen = pDev->rxbufsize;
+ }
+
value = drvmgr_dev_key_get(pDev->dev, "rxDmaArea", DRVMGR_KT_INT);
if ( value )
pDev->rx_dma_area = value->i;
--
2.7.4
More information about the devel
mailing list