diff options
author | Joao Pinto | 2017-03-10 19:24:59 +0100 |
---|---|---|
committer | David S. Miller | 2017-03-13 07:41:04 +0100 |
commit | 19d9187317979cf0c25f67017d2676149abc46b2 (patch) | |
tree | 5107036a3df1310fc8e7d58ef545d9905591368e /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | net: stmmac: mac debug prepared for multiple queues (diff) | |
download | kernel-qcow2-linux-19d9187317979cf0c25f67017d2676149abc46b2.tar.gz kernel-qcow2-linux-19d9187317979cf0c25f67017d2676149abc46b2.tar.xz kernel-qcow2-linux-19d9187317979cf0c25f67017d2676149abc46b2.zip |
net: stmmac: configuration of CBS in case of a TX AVB queue
This patch adds the configuration of the AVB Credit-Based Shaper.
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index e7fb98569d2d..9f0d26da6813 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -467,6 +467,10 @@ struct stmmac_ops { u32 weight, u32 queue); /* RX MTL queue to RX dma mapping */ void (*map_mtl_to_dma)(struct mac_device_info *hw, u32 queue, u32 chan); + /* Configure AV Algorithm */ + void (*config_cbs)(struct mac_device_info *hw, u32 send_slope, + u32 idle_slope, u32 high_credit, u32 low_credit, + u32 queue); /* Dump MAC registers */ void (*dump_regs)(struct mac_device_info *hw, u32 *reg_space); /* Handle extra events on specific interrupts hw dependent */ |