net: stmmac: Add support for CBS QDISC
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 27 Jun 2018 14:57:02 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:38:47 +0000 (18:38 +0900)
commit1f705bc61aee5fab2826bcf6de152a5d92378a85
treee727cacc3c0f666e6771e9f4aec4dbd87c645058
parent30408a43a3b5ac26dc591496ee7f6e07e9d6f935
net: stmmac: Add support for CBS QDISC

This adds support for CBS reconfiguration using the TC application.

A new callback was added to TC ops struct and another one to DMA ops to
reconfigure the channel mode.

Tested in GMAC5.10.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@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/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c