swconfig: support sending SWITCH_TYPE_LINK to kernel