net: stmmac: add BQL support
authorBeniamino Galvani <b.galvani@gmail.com>
Wed, 21 Jan 2015 18:07:27 +0000 (19:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 23:22:15 +0000 (15:22 -0800)
commit3897957494d979ad592a00a6ced4b6c9410e9452
treec98c305d5d60eb1174cc79499b7b6579e7043868
parent1793c798c34b03ba033d3905fe0f87b88c48b504
net: stmmac: add BQL support

Add support for Byte Queue Limits to the STMicro MAC driver.

Tested on a Amlogic S802 quad Cortex-A9 board, where the use of BQL
decreases the latency of a high priority ping from ~12ms to ~1ms when
the 100Mbit link is saturated by 20 TCP streams.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c