]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: add support for TBF offload
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 21 Jul 2020 16:38:25 +0000 (19:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 23:24:04 +0000 (16:24 -0700)
commit8315cb4e3c56af634d3260525257f4a93e93c9a6
treec4deaab0f632f5f674aa6d7dd300235fd0549533
parent2b73b016865af41be86efbf78cbf1a1ff38bf013
dpaa2-eth: add support for TBF offload

React to TC_SETUP_QDISC_TBF and configure the egress shaper as
appropriate with the maximum rate and burst size requested by the user.
TBF can only be offloaded on DPAA2 when it's the root qdisc, ie it's a
per port shaper.

Signed-off-by: Ioana Ciornei <ioana.ciornei@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