net: dsa: bcm_sf2: Advertise number of egress queues
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 4 Sep 2017 03:27:02 +0000 (20:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Sep 2017 18:53:34 +0000 (11:53 -0700)
commit18118377391a266fbd0864b4c65f5c80f231c297
tree464b4508f13bc4598feb5c007e91e09bc3f86622
parent0f15b0986996a4d45090c0010728055c6aa2b458
net: dsa: bcm_sf2: Advertise number of egress queues

The switch supports 8 egress queues per port, so indicate that such that
net/dsa/slave.c::dsa_slave_create can allocate the right number of TX queues.
While at it use SF2_NUM_EGRESS_QUEUE as a define for the number of queues we
support.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2_regs.h