1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2f421436aSArvid Brodin# 3f421436aSArvid Brodin# IEC 62439-3 High-availability Seamless Redundancy 4f421436aSArvid Brodin# 5f421436aSArvid Brodin 6f421436aSArvid Brodinconfig HSR 7*8f4c0e01SMurali Karicheri tristate "High-availability Seamless Redundancy (HSR & PRP)" 8a7f7f624SMasahiro Yamada help 9*8f4c0e01SMurali Karicheri This enables IEC 62439 defined High-availability Seamless 10*8f4c0e01SMurali Karicheri Redundancy (HSR) and Parallel Redundancy Protocol (PRP). 11f421436aSArvid Brodin 12*8f4c0e01SMurali Karicheri If you say Y here, then your Linux box will be able to act as a 13*8f4c0e01SMurali Karicheri DANH ("Doubly attached node implementing HSR") or DANP ("Doubly 14*8f4c0e01SMurali Karicheri attached node implementing PRP"). For this to work, your Linux box 15*8f4c0e01SMurali Karicheri needs (at least) two physical Ethernet interfaces. 16*8f4c0e01SMurali Karicheri 17*8f4c0e01SMurali Karicheri For DANH, it must be connected as a node in a ring network together 18*8f4c0e01SMurali Karicheri with other HSR capable nodes. All Ethernet frames sent over the HSR 19*8f4c0e01SMurali Karicheri device will be sent in both directions on the ring (over both slave 20*8f4c0e01SMurali Karicheri ports), giving a redundant, instant fail-over network. Each HSR node 21*8f4c0e01SMurali Karicheri in the ring acts like a bridge for HSR frames, but filters frames 22*8f4c0e01SMurali Karicheri that have been forwarded earlier. 23*8f4c0e01SMurali Karicheri 24*8f4c0e01SMurali Karicheri For DANP, it must be connected as a node connecting to two 25*8f4c0e01SMurali Karicheri separate networks over the two slave interfaces. Like HSR, Ethernet 26*8f4c0e01SMurali Karicheri frames sent over the PRP device will be sent to both networks giving 27*8f4c0e01SMurali Karicheri a redundant, instant fail-over network. Unlike HSR, PRP networks 28*8f4c0e01SMurali Karicheri can have Singly Attached Nodes (SAN) such as PC, printer, bridges 29*8f4c0e01SMurali Karicheri etc and will be able to communicate with DANP nodes. 30f421436aSArvid Brodin 31f421436aSArvid Brodin This code is a "best effort" to comply with the HSR standard as 32ee1c2797SPeter Heise described in IEC 62439-3:2010 (HSRv0) and IEC 62439-3:2012 (HSRv1), 33*8f4c0e01SMurali Karicheri and PRP standard described in IEC 62439-4:2012 (PRP), but no 34*8f4c0e01SMurali Karicheri compliancy tests have been made. Use iproute2 to select the protocol 35*8f4c0e01SMurali Karicheri you would like to use. 36f421436aSArvid Brodin 37f421436aSArvid Brodin You need to perform any and all necessary tests yourself before 38f421436aSArvid Brodin relying on this code in a safety critical system! 39f421436aSArvid Brodin 40f421436aSArvid Brodin If unsure, say N. 41