diff options
author | 2017-03-10 18:24:59 +0000 | |
---|---|---|
committer | 2017-03-12 23:41:04 -0700 | |
commit | 19d9187317979cf0c25f67017d2676149abc46b2 (patch) | |
tree | 5107036a3df1310fc8e7d58ef545d9905591368e /include/linux/stmmac.h | |
parent | net: stmmac: mac debug prepared for multiple queues (diff) | |
download | linux-19d9187317979cf0c25f67017d2676149abc46b2.tar.gz linux-19d9187317979cf0c25f67017d2676149abc46b2.tar.bz2 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 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 266ff2af91e5..be47b859e954 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -55,9 +55,9 @@ #define MTL_RX_ALGORITHM_SP 0x4 #define MTL_RX_ALGORITHM_WSP 0x5 -/* RX Queue Mode */ -#define MTL_RX_DCB 0x0 -#define MTL_RX_AVB 0x1 +/* RX/TX Queue Mode */ +#define MTL_QUEUE_DCB 0x0 +#define MTL_QUEUE_AVB 0x1 /* The MDC clock could be set higher than the IEEE 802.3 * specified frequency limit 0f 2.5 MHz, by programming a clock divider @@ -131,6 +131,12 @@ struct stmmac_rxq_cfg { struct stmmac_txq_cfg { u8 weight; + u8 mode_to_use; + /* Credit Base Shaper parameters */ + u32 send_slope; + u32 idle_slope; + u32 high_credit; + u32 low_credit; }; struct plat_stmmacenet_data { |