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)
commit3657cdaf03a6f751b6f6c09381b1a9e016678069
treec4deaab0f632f5f674aa6d7dd300235fd0549533
parent39344a89623d77ffa4cf9354d85fd6e58467bb87
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