From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <jingjing.wu@intel.com>
Received: from mga14.intel.com (mga14.intel.com [192.55.52.115])
 by dpdk.org (Postfix) with ESMTP id 1E15C2C13
 for <dev@dpdk.org>; Tue, 20 Jun 2017 03:26:58 +0200 (CEST)
Received: from orsmga001.jf.intel.com ([10.7.209.18])
 by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 19 Jun 2017 18:26:58 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.39,363,1493708400"; d="scan'208";a="1142914667"
Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202])
 by orsmga001.jf.intel.com with ESMTP; 19 Jun 2017 18:26:57 -0700
Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by
 fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Mon, 19 Jun 2017 18:26:57 -0700
Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by
 fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Mon, 19 Jun 2017 18:26:57 -0700
Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by
 shsmsx102.ccr.corp.intel.com ([169.254.2.146]) with mapi id 14.03.0319.002;
 Tue, 20 Jun 2017 09:26:54 +0800
From: "Wu, Jingjing" <jingjing.wu@intel.com>
To: Vasily Philipov <vasilyf@mellanox.com>, "dev@dpdk.org" <dev@dpdk.org>
CC: Adrien Mazarguil <adrien.mazarguil@6wind.com>, Nelio Laranjeiro
 <nelio.laranjeiro@6wind.com>
Thread-Topic: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isolated mode
 parameter
Thread-Index: AQHS3Td86fEjqyixiUGCJgv9Wj6fSqItDLyA
Date: Tue, 20 Jun 2017 01:26:54 +0000
Message-ID: <9BB6961774997848B5B42BEC655768F810DAA4BE@SHSMSX103.ccr.corp.intel.com>
References: <0dca86aa1372d6ff09d0aff01d522c580e0e24ab.1495717153.git.vasilyf@mellanox.com>
 <96c3dca8015a755afb37bf35ae85e6fa16282c0c.1496583000.git.vasilyf@mellanox.com>
In-Reply-To: <96c3dca8015a755afb37bf35ae85e6fa16282c0c.1496583000.git.vasilyf@mellanox.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
dlp-product: dlpe-windows
dlp-version: 10.0.102.7
dlp-reaction: no-action
x-originating-ip: [10.239.127.40]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isolated mode
 parameter
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jun 2017 01:26:59 -0000


> +/*
>   * Avoids to check link status when starting/stopping a port.
>   */
>  uint8_t no_link_check =3D 0; /* check by default */
> @@ -1422,6 +1427,15 @@ static void eth_event_callback(uint8_t port_id,
>  		if (port->need_reconfig > 0) {
>  			port->need_reconfig =3D 0;
>=20
> +			if (isolated_mode) {
> +				int ret =3D port_flow_isolate(pi, 1);
> +				if (ret) {
> +					printf("Failed to apply isolated"
> +					       " mode on port %d\n", pi);
> +					return -1;
> +				}
> +			}
> +
Should it block the app startup if isolated-mode setting fails?