swconfig: add SWITCH_TYPE_LINK and support sending link info to user space