]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: stmmac: RX buffer size must be 16 byte aligned
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 18 Dec 2019 10:17:40 +0000 (11:17 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit270b710ef88d629a12b879be3be2aaf7d3b5c88f
tree3737f7dcad277775dcdde490494ca8ba7713c1c4
parent3ed4a308c4bf51bd5819963130fabe03331c5781
net: stmmac: RX buffer size must be 16 byte aligned

BugLink: https://bugs.launchpad.net/bugs/1861739
[ Upstream commit 8d558f0294fe92e04af192e221d0d0f6a180ee7b ]

We need to align the RX buffer size to at least 16 byte so that IP
doesn't mis-behave. This is required by HW.

Changes from v2:
- Align UP and not DOWN (David)

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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c