diff options
| author | David S. Miller <[email protected]> | 2017-09-05 11:53:34 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-09-05 11:53:34 -0700 |
| commit | 9e776f225dcf741ff7e91d866be752d1660d2073 (patch) | |
| tree | f6188bcc659b75e21b0799dfdf3308eda2160d84 /include | |
| parent | f1c2eddf4cb6a6c8ca5f6e728e7328b9c5bc3e8a (diff) | |
| parent | c837fc81d67fd807f7d675412e9bb2706f9ee6f9 (diff) | |
Merge branch 'dsa-tx-queues'
Florian Fainelli says:
====================
net: dsa: Allow switch drivers to indicate number of TX queues
This patch series extracts the parts of the patch set that are likely not to be
controversial and actually bringing multi-queue support to DSA-created network
devices.
With these patches, we can now use sch_multiq as documented under
Documentation/networking/multique.txt and let applications dedice the switch
port output queue they want to use. Currently only Broadcom tags utilize that
information.
Resending based on David's feedback regarding the patches not in patchwork.
Changes in v2:
- use a proper define for the number of TX queues in bcm_sf2.c (Andrew)
Changes from RFC:
- dropped the ability to configure RX queues since we don't do anything with
those just yet
- dropped the patches that dealt with binding the DSA slave network devices
queues with their master network devices queues this will be worked on
separately.
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 398ca8d70ccd..dd44d6ce1097 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -243,6 +243,9 @@ struct dsa_switch { /* devlink used to represent this switch device */ struct devlink *devlink; + /* Number of switch port queues */ + unsigned int num_tx_queues; + /* Dynamically allocated ports, keep last */ size_t num_ports; struct dsa_port ports[]; |