mlxsw: switchx2: Check if port is usable before calling port create
Do it in a same way we do it in spectrum. Check if port is usable first and only in that case create a port instance. Signed-off-by: NJiri Pirko <jiri@mellanox.com> Reviewed-by: NElad Raz <eladr@mellanox.com> Reviewed-by: NIdo Schimmel <idosch@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录