History

bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are received with the expected interval.

Henrik Bjoernlund committed 6 years ago

Commit dc32cbb1 parent a806ad83 files · +305 −0Browse files

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

Unified · Split

include/uapi/linux/cfm_bridge.h+4−0
@@ -20,6 +20,10 @@ · 19 unmodified lines
2020 CFM_IF_STATUS_TLV_LENGTH)
2121 #define CFM_FRAME_PRIO 7
2222 #define CFM_CCM_TLV_OFFSET 70
23+#define CFM_CCM_PDU_MAID_OFFSET 10
24+#define CFM_CCM_PDU_MEPID_OFFSET 8
25+#define CFM_CCM_PDU_SEQNR_OFFSET 4
26+#define CFM_CCM_PDU_TLV_OFFSET 74
2327 #define CFM_CCM_ITU_RESERVED_SIZE 16
2428
2529 struct br_cfm_common_hdr {