OSDN Git Service

dpaa2-eth: fix command version for Tx shaping
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 25 Sep 2020 14:35:30 +0000 (17:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Sep 2020 00:08:48 +0000 (17:08 -0700)
commit72e27c38abb3dc8da7c05f829d44b3f3c46d06da
treee881e9af8a6e39d04769d7b075ee902f555ebbc9
parente42d72fea91f8f2e82b65808739ca04b7a8cd7a8
dpaa2-eth: fix command version for Tx shaping

When adding the support for TBF offload, the improper command version
was added even though the command format is for the V2 of
dpni_set_tx_shaping(). This does not affect the functionality of TBF
since the only change between these two versions is the addition of the
exceeded parameters which are not used in TBF. Still, fix the bug so
that we keep things in sync.

Fixes: 39344a89623d ("dpaa2-eth: add API for Tx shaping")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h