Commit 40d4b4da authored by Jose Abreu's avatar Jose Abreu Committed by Khalid Elmously

net: stmmac: 16KB buffer must be 16 byte aligned

BugLink: https://bugs.launchpad.net/bugs/1860681

commit 86051317 upstream.

The 16KB RX Buffer must also be 16 byte aligned. Fix it.

Fixes: 7ac6653a ("stmmac: Move the STMicroelectronics driver")
Signed-off-by: default avatarJose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 8b1cd62b
...@@ -273,8 +273,8 @@ struct dma_features { ...@@ -273,8 +273,8 @@ struct dma_features {
unsigned int enh_desc; unsigned int enh_desc;
}; };
/* GMAC TX FIFO is 8K, Rx FIFO is 16K */ /* RX Buffer size must be multiple of 4/8/16 bytes */
#define BUF_SIZE_16KiB 16384 #define BUF_SIZE_16KiB 16368
#define BUF_SIZE_8KiB 8192 #define BUF_SIZE_8KiB 8192
#define BUF_SIZE_4KiB 4096 #define BUF_SIZE_4KiB 4096
#define BUF_SIZE_2KiB 2048 #define BUF_SIZE_2KiB 2048
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment