net: bridge: mrp: Update ring transitions.
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Jun 2021 10:37:47 +0000 (12:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:41:28 +0000 (14:41 -0700)
commitfcb34635854a5a5814227628867ea914a9805384
tree981f6f2d8f81282cf69bcf31b077e532e0499a95
parentecb0605810f395961ea70c34e8946198bacd2f2d
net: bridge: mrp: Update ring transitions.

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>
net/bridge/br_mrp.c