]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit339dee741c5b41906f73c205635654d465e3fb2a
tree981f6f2d8f81282cf69bcf31b077e532e0499a95
parent7aff6f28d79898f6f1306cac50c04c2ff3eded1d
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