]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Disable flow ctrl for RX AVB queues and really enable TX AVB queues
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 13 Oct 2017 09:58:37 +0000 (10:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Oct 2017 18:12:08 +0000 (11:12 -0700)
commit2d2f298cd5e35a03f857d8e9f88d1a46bbfba9a6
tree18ff1cb57dd5611f09a7ac2b40941c77bbe6038a
parent23a12e75a15621d71ca10db34484e831a6280ef6
net: stmmac: Disable flow ctrl for RX AVB queues and really enable TX AVB queues

Flow control must be disabled for AVB enabled queues and TX
AVB queues must be enabled by setting BIT(2) of TXQEN.

Correct this by passing the queue mode to DMA callbacks
and by checking in these functions wether we are in AVB
performing the necessary adjustments.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: 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/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c