net: prp: add supervision frame generation utility function
authorMurali Karicheri <m-karicheri2@ti.com>
Wed, 22 Jul 2020 14:40:19 +0000 (10:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 19:20:40 +0000 (12:20 -0700)
commitc643ff0383c858b9af09f582ed2947810e4cf407
tree9ab15e6534298ca5908422c9b4ed33724d6c7b1d
parent28e458e097f32af4f89f02e078a6d6b4ea7a52ed
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>
net/hsr/hsr_device.c
net/hsr/hsr_forward.c
net/hsr/hsr_main.h