[PATCH 5.15 307/846] net: dsa: fix incorrect function pointer check for MRP ring roles