net: dsa: Allow switch drivers to indicate number of TX queues
Let switch drivers indicate how many TX queues they support. Some switches, such as Broadcom Starfighter 2 are designed with 8 egress queues. Future changes will allow us to leverage the queue mapping and direct the transmission towards a particular queue. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f1c2eddf4c
commit
55199df6d2
@@ -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[];
|
||||
|
Reference in New Issue
Block a user