net: hsr: define and use proto_ops ptrs to handle hsr specific frames
authorMurali Karicheri <m-karicheri2@ti.com>
Wed, 22 Jul 2020 14:40:20 +0000 (10:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 19:20:40 +0000 (12:20 -0700)
commitfa4dc89531360de760359bf94086b04dada98d4e
tree2e3f088de4fdc10beed19603216e6ceb2da2a272
parentc643ff0383c858b9af09f582ed2947810e4cf407
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>
net/hsr/hsr_device.c
net/hsr/hsr_forward.c
net/hsr/hsr_forward.h
net/hsr/hsr_main.h