summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorJoao Pinto <Joao.Pinto@synopsys.com>2017-03-10 18:24:53 +0000
committerDavid S. Miller <davem@davemloft.net>2017-03-12 23:41:03 -0700
commit6a3a7193b2811537c64eb513e39473050a72f1a4 (patch)
tree5a2bdd87348a36fd379f5d35681a28762c7c5776 /drivers/net/ethernet/stmicro/stmmac/common.h
parentd0a9c9f9c6d0b1f0773e0aba5ab519b8ddc87a7a (diff)
downloadop-kernel-dev-6a3a7193b2811537c64eb513e39473050a72f1a4.zip
op-kernel-dev-6a3a7193b2811537c64eb513e39473050a72f1a4.tar.gz
net: stmmac: configure tx queue weight
This patch adds TX queues weight programming. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 31d3324..4eeaa5c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -462,6 +462,9 @@ struct stmmac_ops {
void (*prog_mtl_rx_algorithms)(struct mac_device_info *hw, u32 rx_alg);
/* Program TX Algorithms */
void (*prog_mtl_tx_algorithms)(struct mac_device_info *hw, u32 tx_alg);
+ /* Set MTL TX queues weight */
+ void (*set_mtl_tx_queue_weight)(struct mac_device_info *hw,
+ u32 weight, u32 queue);
/* Dump MAC registers */
void (*dump_regs)(struct mac_device_info *hw, u32 *reg_space);
/* Handle extra events on specific interrupts hw dependent */
OpenPOWER on IntegriCloud