net: prp: add supervision frame generation utility function
Add support for generation of PRP supervision frames. For PRP, supervision frame format is similar to HSR version 0, but have a PRP Redundancy Control Trailer (RCT) added and uses a different message type, PRP_TLV_LIFE_CHECK_DD. Also update is_supervision_frame() to include the new message type used for PRP supervision frame. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
28e458e097
commit
c643ff0383
@@ -76,7 +76,9 @@ static bool is_supervision_frame(struct hsr_priv *hsr, struct sk_buff *skb)
|
||||
}
|
||||
|
||||
if (hsr_sup_tag->HSR_TLV_type != HSR_TLV_ANNOUNCE &&
|
||||
hsr_sup_tag->HSR_TLV_type != HSR_TLV_LIFE_CHECK)
|
||||
hsr_sup_tag->HSR_TLV_type != HSR_TLV_LIFE_CHECK &&
|
||||
hsr_sup_tag->HSR_TLV_type != PRP_TLV_LIFE_CHECK_DD &&
|
||||
hsr_sup_tag->HSR_TLV_type != PRP_TLV_LIFE_CHECK_DA)
|
||||
return false;
|
||||
if (hsr_sup_tag->HSR_TLV_length != 12 &&
|
||||
hsr_sup_tag->HSR_TLV_length != sizeof(struct hsr_sup_payload))
|
||||
|
Reference in New Issue
Block a user