]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: Allow having more than one queue per TC
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 26 Nov 2021 11:20:55 +0000 (12:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 12:05:52 +0000 (12:05 +0000)
commit17fc811ed8ff34d41002a673b139d24c9177f69e
tree3331ea09bbf3828679b7d6e4ed21fb5c05c6096a
parent6315a95e7cabe096fc6321a1d8c8884a3631ef73
net: mvneta: Allow having more than one queue per TC

The current mqprio implementation assumed that we are only using one
queue per TC. Use the offset and count parameters to allow using
multiple queues per TC. In that case, the controller will use a standard
round-robin algorithm to pick queues assigned to the same TC, with the
same priority.

This only applies to VLAN priorities in ingress traffic, each TC
corresponding to a vlan priority.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c