]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Only the last buffer has the FCS field
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 18 Dec 2019 10:17:38 +0000 (11:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 20:04:17 +0000 (12:04 -0800)
commit0374d2a434d6a6781fd4d55ec5dcd19ca616ba27
tree5d4b047423758e94fb4634ff51c7ad24f2fa0d9e
parentcd0801e3d55f07d3723945a13a0044cebffa7e82
net: stmmac: Only the last buffer has the FCS field

Only the last received buffer contains the FCS field. Check for end of
packet before trying to strip the FCS field.

Fixes: d697b9a52f00 ("net: stmmac: Rework stmmac_rx()")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c