diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2016-08-22 13:59:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 04:29:13 +0300 |
commit | 10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5 (patch) | |
tree | 5b7a9faa8aafc1b8bbcedfb0276b894e437ab870 /drivers/net/ethernet/chelsio/cxgb4/sched.h | |
parent | 6cede1f17f51333ecf9cd4c9fca5565842f1bf55 (diff) | |
download | linux-10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5.tar.xz |
cxgb4: add support for tx max rate limiting
Implement set_tx_maxrate NDO to perform per queue tx rate limiting.
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/sched.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sched.h b/drivers/net/ethernet/chelsio/cxgb4/sched.h index ac415eb24ac7..77b2b3fd9021 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sched.h +++ b/drivers/net/ethernet/chelsio/cxgb4/sched.h @@ -42,6 +42,9 @@ #define FW_SCHED_CLS_NONE 0xffffffff +/* Max rate that can be set to a scheduling class is 10 Gbps */ +#define SCHED_MAX_RATE_KBPS 10000000U + enum { SCHED_STATE_ACTIVE, SCHED_STATE_UNUSED, |