linux/net/hsr
Murali Karicheri 28e458e097 net: hsr: introduce protocol specific function pointers
As a preparatory patch to introduce support for PRP protocol, add a
protocol ops ptr in the private hsr structure to hold function
pointers as some of the functions at protocol level packet
handling is different for HSR vs PRP. It is expected that PRP will
add its of set of functions for protocol handling. Modify existing
hsr_announce() function to call proto_ops->send_sv_frame() to send
supervision frame for HSR. This is expected to be different for PRP.
So introduce a ops function ptr, send_sv_frame() for the same and
initialize it to send_hsr_supervsion_frame(). Modify hsr_announce()
to call proto_ops->send_sv_frame().

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-27 12:20:40 -07:00
..
hsr_debugfs.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_device.c net: hsr: introduce protocol specific function pointers 2020-07-27 12:20:40 -07:00
hsr_device.h hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_forward.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_forward.h hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_framereg.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_framereg.h hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_main.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_main.h net: hsr: introduce protocol specific function pointers 2020-07-27 12:20:40 -07:00
hsr_netlink.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_netlink.h hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_slave.c hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
hsr_slave.h hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
Kconfig hsr: enhance netlink socket interface to support PRP 2020-07-27 12:20:40 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00