提交 f885d4a2 编写于 作者: J Jose Abreu 提交者: Yang Yingliang

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

commit 8605131747e7e1fd8f6c9f97a00287aae2b2c640 upstream.

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

Fixes: 7ac6653a ("stmmac: Move the STMicroelectronics driver")
Signed-off-by: NJose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 c37d1fa9
...@@ -363,9 +363,8 @@ struct dma_features { ...@@ -363,9 +363,8 @@ struct dma_features {
unsigned int frpes; unsigned int frpes;
}; };
/* 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
/* RX Buffer size must be < 8191 and multiple of 4/8/16 bytes */
#define BUF_SIZE_8KiB 8188 #define BUF_SIZE_8KiB 8188
#define BUF_SIZE_4KiB 4096 #define BUF_SIZE_4KiB 4096
#define BUF_SIZE_2KiB 2048 #define BUF_SIZE_2KiB 2048
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册