]> git.karo-electronics.de Git - linux-beck.git/commit
stmmac: merge get_rx_owner into rx_status routine.
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 29 Feb 2016 13:27:34 +0000 (14:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:21:32 +0000 (14:21 -0500)
commitc1fa3212be5503d802a5c4c451dd4e673fdc603a
treedf0200388853f5d98b595c1ed34e82565d89666d
parent96951366ce8546662de56f58a3885b94326f9670
stmmac: merge get_rx_owner into rx_status routine.

The RDES0 register can be read several times while doing RX of a
packet.
This patch slightly improves RX path performance by reading rdes0
once for two operation: check rx owner, get rx status bits.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/enh_desc.c
drivers/net/ethernet/stmicro/stmmac/norm_desc.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c