mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
8f4c0e0178
Parallel Redundancy Protocol (PRP) is another redundancy protocol introduced by IEC 63439 standard. It is similar to HSR in many aspects:- - Use a pair of Ethernet interfaces to created the PRP device - Use a 6 byte redundancy protocol part (RCT, Redundancy Check Trailer) similar to HSR Tag. - Has Link Redundancy Entity (LRE) that works with RCT to implement redundancy. Key difference is that the protocol unit is a trailer instead of a prefix as in HSR. That makes it inter-operable with tradition network components such as bridges/switches which treat it as pad bytes, whereas HSR nodes requires some kind of translators (Called redbox) to talk to regular network devices. This features allows regular linux box to be converted to a DAN-P box. DAN-P stands for Dual Attached Node - PRP similar to DAN-H (Dual Attached Node - HSR). Add a comment at the header/source code to explicitly state that the driver files also handles PRP protocol as well. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright 2011-2013 Autronica Fire and Security AS
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* Author(s):
|
|
* 2011-2013 Arvid Brodin, arvid.brodin@xdin.com
|
|
*/
|
|
|
|
#ifndef __UAPI_HSR_NETLINK_H
|
|
#define __UAPI_HSR_NETLINK_H
|
|
|
|
/* Generic Netlink HSR family definition
|
|
*/
|
|
|
|
/* attributes for HSR or PRP node */
|
|
enum {
|
|
HSR_A_UNSPEC,
|
|
HSR_A_NODE_ADDR,
|
|
HSR_A_IFINDEX,
|
|
HSR_A_IF1_AGE,
|
|
HSR_A_IF2_AGE,
|
|
HSR_A_NODE_ADDR_B,
|
|
HSR_A_IF1_SEQ,
|
|
HSR_A_IF2_SEQ,
|
|
HSR_A_IF1_IFINDEX,
|
|
HSR_A_IF2_IFINDEX,
|
|
HSR_A_ADDR_B_IFINDEX,
|
|
__HSR_A_MAX,
|
|
};
|
|
#define HSR_A_MAX (__HSR_A_MAX - 1)
|
|
|
|
|
|
/* commands */
|
|
enum {
|
|
HSR_C_UNSPEC,
|
|
HSR_C_RING_ERROR,
|
|
HSR_C_NODE_DOWN,
|
|
HSR_C_GET_NODE_STATUS,
|
|
HSR_C_SET_NODE_STATUS,
|
|
HSR_C_GET_NODE_LIST,
|
|
HSR_C_SET_NODE_LIST,
|
|
__HSR_C_MAX,
|
|
};
|
|
#define HSR_C_MAX (__HSR_C_MAX - 1)
|
|
|
|
#endif /* __UAPI_HSR_NETLINK_H */
|