History

bridge: mrp: Implement LC mode for MRP

Extend MRP to support LC mode(link check) for the interconnect port. This applies only to the interconnect ring. Opposite to RC mode(ring check) the LC mode is using CFM frames to detect when the link goes up or down and based on that the userspace will need to react. One advantage of the LC mode over RC mode is that there will be fewer frames in the normal rings. Because RC mode generates InTest on all ports while LC mode sends CFM frame only on the interconnect port. All 4 nodes part of the interconnect ring needs to have the same mode. And it is not possible to have running LC and RC mode at the same time on a node. Whenever the MIM starts it needs to detect the status of the other 3 nodes in the interconnect ring so it would send a frame called InLinkStatus, on which the clients needs to reply with their link status. This patch adds InLinkStatus frame type and extends existing rules on how to forward this frame.

Horatiu Vultur committed 5 years ago

Commit bfd04231 parent f4600192 files · +16 −3Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/mrp_bridge.h+1−0
@@ -61,6 +61,7 @@ enum br_mrp_tlv_header_type { · 60 unmodified lines
61 BR_MRP_TLV_HEADER_IN_TOPO = 0x7,61 BR_MRP_TLV_HEADER_IN_TOPO = 0x7,
62 BR_MRP_TLV_HEADER_IN_LINK_DOWN = 0x8,62 BR_MRP_TLV_HEADER_IN_LINK_DOWN = 0x8,
63 BR_MRP_TLV_HEADER_IN_LINK_UP = 0x9,63 BR_MRP_TLV_HEADER_IN_LINK_UP = 0x9,
64 BR_MRP_TLV_HEADER_IN_LINK_STATUS = 0xa,
64 BR_MRP_TLV_HEADER_OPTION = 0x7f,65 BR_MRP_TLV_HEADER_OPTION = 0x7f,
65};66};
66 67

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t