]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dpaa2-switch: fix the translation between the bridge and dpsw STP states
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 30 Mar 2021 14:54:15 +0000 (17:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:18:26 +0000 (17:18 -0700)
commit6aa6791d1a0fa9cf371287d2134f95a936da408a
tree01c60d2d495ac90ccb366586aff1c3e1321eb5a7
parente48792a9ec7898444fec6577611a6205e36dfdb9
dpaa2-switch: fix the translation between the bridge and dpsw STP states

The numerical values used for STP states are different between the
bridge and the MC ABI therefore, the direct usage of the
BR_STATE_* macros directly in the structures passed to the firmware is
incorrect.

Create a separate function that translates between the bridge STP states
and the enum that holds the STP state as seen by the Management Complex.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c