net: hsr: define and use proto_ops ptrs to handle hsr specific frames
As a preparatory patch to introduce PRP, refactor the code specific to handling HSR frames into separate functions and call them through proto_ops function pointers. 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
c643ff0383
commit
fa4dc89531
@@ -440,9 +440,12 @@ static struct device_type hsr_type = {
|
||||
|
||||
static struct hsr_proto_ops hsr_ops = {
|
||||
.send_sv_frame = send_hsr_supervision_frame,
|
||||
.create_tagged_frame = hsr_create_tagged_frame,
|
||||
.get_untagged_frame = hsr_get_untagged_frame,
|
||||
.fill_frame_info = hsr_fill_frame_info,
|
||||
};
|
||||
|
||||
struct hsr_proto_ops prp_ops = {
|
||||
static struct hsr_proto_ops prp_ops = {
|
||||
.send_sv_frame = send_prp_supervision_frame,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user