mlxsw: Move devlink port registration into common core code