diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2016-08-22 13:59:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 04:29:13 +0300 |
commit | 6cede1f17f51333ecf9cd4c9fca5565842f1bf55 (patch) | |
tree | 532509974f67df7dda469a9cdf1abf32792bdbb7 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | b72a32dacdfa29b21da8c720ab9ceee40399b2ac (diff) | |
download | linux-6cede1f17f51333ecf9cd4c9fca5565842f1bf55.tar.xz |
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.h | 8 |
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 |