summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorRahul Lakkireddy2016-08-22 12:59:08 +0200
committerDavid S. Miller2016-08-23 03:29:13 +0200
commit10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5 (patch)
tree5b7a9faa8aafc1b8bbcedfb0276b894e437ab870 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: add support for per queue tx scheduling (diff)
downloadkernel-qcow2-linux-10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5.tar.gz
kernel-qcow2-linux-10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5.tar.xz
kernel-qcow2-linux-10a2604ea2eac8af2bf7fa5eb11e4fcb6bc336d5.zip
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/cxgb4.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index eb30612c5372..f988c600c68d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -881,6 +881,26 @@ struct ch_sched_params {
} u;
};
+enum {
+ SCHED_CLASS_TYPE_PACKET = 0, /* class type */
+};
+
+enum {
+ SCHED_CLASS_LEVEL_CL_RL = 0, /* class rate limiter */
+};
+
+enum {
+ SCHED_CLASS_MODE_CLASS = 0, /* per-class scheduling */
+};
+
+enum {
+ SCHED_CLASS_RATEUNIT_BITS = 0, /* bit rate scheduling */
+};
+
+enum {
+ SCHED_CLASS_RATEMODE_ABS = 1, /* Kb/s */
+};
+
/* Support for "sched_queue" command to allow one or more NIC TX Queues
* to be bound to a TX Scheduling Class.
*/