summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorRahul Lakkireddy2016-08-22 12:59:07 +0200
committerDavid S. Miller2016-08-23 03:29:13 +0200
commit6cede1f17f51333ecf9cd4c9fca5565842f1bf55 (patch)
tree532509974f67df7dda469a9cdf1abf32792bdbb7 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: add support for tx traffic scheduling classes (diff)
downloadkernel-qcow2-linux-6cede1f17f51333ecf9cd4c9fca5565842f1bf55.tar.gz
kernel-qcow2-linux-6cede1f17f51333ecf9cd4c9fca5565842f1bf55.tar.xz
kernel-qcow2-linux-6cede1f17f51333ecf9cd4c9fca5565842f1bf55.zip
cxgb4: add support for per queue tx scheduling
Add support to bind/unbind specified tx queues to/from scheduling classes. If a queue is already bound to a scheduling class, it is unbound first and then bound to a new specified class. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 17a6dd0ee166..eb30612c5372 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -881,6 +881,14 @@ struct ch_sched_params {
} u;
};
+/* Support for "sched_queue" command to allow one or more NIC TX Queues
+ * to be bound to a TX Scheduling Class.
+ */
+struct ch_sched_queue {
+ s8 queue; /* queue index */
+ s8 class; /* class index */
+};
+
/* Defined bit width of user definable filter tuples
*/
#define ETHTYPE_BITWIDTH 16