Skip to content
Commit c4b712d1 authored by Jose Abreu's avatar Jose Abreu Committed by Greg Kroah-Hartman
Browse files

net: stmmac: Rework stmmac_rx()



[ Upstream commit 88ebe2cf ]

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: default avatarJose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: fa02de9e ("net: stmmac: fix rx budget limit check")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b2762d13
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment