]> 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)
commitd453744036232c83e95155270c238699733efb63
treed3be41093c3c8740bfa299ede9db8f7ed560b236
parent4f9ca7e3f9d546b365dca7ad8efaa6142e8680ed
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