]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Rework stmmac_rx()
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 11 Nov 2019 14:42:38 +0000 (15:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 07:13:19 +0000 (23:13 -0800)
commitd697b9a52f009f6cd35d03f318acf27acfab02f9
tree1fea76e1e0dec3ad792b2742b9e53084d59589d4
parent09152c4d54f3f519df4b8dfcd3c5b276219a65c4
net: stmmac: Rework stmmac_rx()

This looks over-engineered. Let's use some helpers to get the buffer
length and hereby simplify the stmmac_rx() function. No performance drop
was seen with the new implementation.

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