]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Add mqprio support
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 11 Jun 2019 11:50:03 +0000 (14:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2019 18:22:10 +0000 (11:22 -0700)
commit8c10e674c0b5a903127b47b1c78a558327f9dd31
treed3be41093c3c8740bfa299ede9db8f7ed560b236
parentf20cec915bba172ab171613bd0f55dcbcb9e7231
dpaa2-eth: Add mqprio support

Implement mqprio qdisc support by mapping traffic classes to
different hardware enqueue priorities. The maximum number of
supported traffic classes is an attribute of each DPNI object.

The traffic classes map to hardware priorities from highest (0)
to lowest (highest prio number). The skb priority information
received from the stack is used to select the hardware Tx queue
on which to enqueue the frame.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h