Commits
Murali Karicheri committed 65f4b7706f6
net: hsr/prp: unify netlink socket interface From the user interface point of view, hsr/prp device configuration is similar. It accepts a pair of ethernet link and other parameters. To help re-use the code, rename existing uapi inlcude file, include/uapi/linux/hsr_netlink.h to include/uapi/linux/hsr_prp_netlink.h and prefix the definitions with HSR_PRP to indicate they are applicable for both. Also remove include/uapi/linux/prp_netlink.h in favour of the above. While doing so, clean up the names used in include/uapi/linux/ if_link.h as well . For example, IFLA_HSR_MULTICAST_SPEC actually is Least Significant Byte (LSB) of the Multicast address used for Supervision frames and is configurable. So call it IFLA_HSR_PRP_SF_MC_ADDR_LSB instead to make it explicit. Similarly, change IFLA_PRP_SUPERVISION_ADDR to IFLA_HSR_PRP_SF_MC_ADDR. By using the latest definitions, refactor code in hsr_netlink.c to a common file, hsr_prp_netlink.h and call the functions from hsr_netlink.c and prp_netlink.c thereby removing duplicate code. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>