diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2021-06-26 23:18:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-29 01:46:10 +0300 |
commit | f7458934b0791c39a001e4d902fc3bf697b439b5 (patch) | |
tree | 4e3b03510b8b2984b5edbda94c6fd202cb8c6355 /net/bridge/br_private_mrp.h | |
parent | f0305e732a1a144dcdb1536b828ee4a5cc1d212f (diff) | |
download | linux-f7458934b0791c39a001e4d902fc3bf697b439b5.tar.xz |
net: bridge: mrp: Update the Test frames for MRA
According to the standard IEC 62439-2, in case the node behaves as MRA
and needs to send Test frames on ring ports, then these Test frames need
to have an Option TLV and a Sub-Option TLV which has the type AUTO_MGR.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private_mrp.h')
-rw-r--r-- | net/bridge/br_private_mrp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/bridge/br_private_mrp.h b/net/bridge/br_private_mrp.h index 9559aa2750fb..bda8e1896712 100644 --- a/net/bridge/br_private_mrp.h +++ b/net/bridge/br_private_mrp.h @@ -6,6 +6,8 @@ #include "br_private.h" #include <uapi/linux/mrp_bridge.h> +#define MRP_OPT_PADDING 0x2 + struct br_mrp { /* list of mrp instances */ struct hlist_node list; @@ -134,4 +136,13 @@ struct br_mrp_in_test_hdr { __be32 timestamp; } __attribute__((__packed__)); +struct br_mrp_oui_hdr { + __u8 oui[MRP_OUI_LENGTH]; +}; + +struct br_mrp_sub_option1_hdr { + __u8 type; + __u8 data[MRP_MANUFACTURE_DATA_LENGTH]; +}; + #endif /* _BR_PRIVATE_MRP_H */ |