[PATCH 6.12 282/354] net: hsr: create an API to get hsr port type