| From 5af5c5a48dc24827fb33788bced4a2a2848e0a43 Mon Sep 17 00:00:00 2001 |
| From: Jose Abreu <Jose.Abreu@synopsys.com> |
| Date: Wed, 18 Dec 2019 11:17:41 +0100 |
| Subject: [PATCH] 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: 7ac6653a085b ("stmmac: Move the STMicroelectronics driver") |
| Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> |
| Signed-off-by: David S. Miller <davem@davemloft.net> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h |
| index c265cc5770e8..e32fcaf2b712 100644 |
| --- a/drivers/net/ethernet/stmicro/stmmac/common.h |
| +++ b/drivers/net/ethernet/stmicro/stmmac/common.h |
| @@ -353,9 +353,8 @@ struct dma_features { |
| unsigned int frpes; |
| }; |
| |
| -/* GMAC TX FIFO is 8K, Rx FIFO is 16K */ |
| -#define BUF_SIZE_16KiB 16384 |
| -/* RX Buffer size must be < 8191 and multiple of 4/8/16 bytes */ |
| +/* RX Buffer size must be multiple of 4/8/16 bytes */ |
| +#define BUF_SIZE_16KiB 16368 |
| #define BUF_SIZE_8KiB 8188 |
| #define BUF_SIZE_4KiB 4096 |
| #define BUF_SIZE_2KiB 2048 |
| -- |
| 2.7.4 |
| |