[PATCH 6.18 520/614] net: hsr: create an API to get hsr port type