swconfig: support receiving SWITCH_TYPE_LINK from kernel