net: bridge: mrp: Update ring transitions.
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Jun 2021 10:37:47 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:46 +0000 (09:44 +0200)
commita4a86400c68c5228ebcd4d255063d4599d4243e4
treed21d5f915287a8d05d64b2aa514e2cef7dc55dd0
parentcc4f0a9d5aa1b5abffb2366a0b37c37806362fe8
net: bridge: mrp: Update ring transitions.

[ Upstream commit fcb34635854a5a5814227628867ea914a9805384 ]

According to the standard IEC 62439-2, the number of transitions needs
to be counted for each transition 'between' ring state open and ring
state closed and not from open state to closed state.

Therefore fix this for both ring and interconnect ring.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/br_mrp.c