From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 40A39A0512; Wed, 15 Jan 2020 09:50:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 900AE1C039; Wed, 15 Jan 2020 09:50:11 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2069.outbound.protection.outlook.com [40.107.20.69]) by dpdk.org (Postfix) with ESMTP id ADEAE1C014; Wed, 15 Jan 2020 09:50:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=av/gZXqOx0KEvVaXf9kX1e1kL+sdpT3aJ7FHMk6HLpKPS2fU2c5svkaT4yoNuqUMROljivBB7XlsHcA+0lGeYFazejQzmNEl2oY5RLcKAzA1ghtngPZ6pRnimsohj11LNuDBxMxPiOvrU9PnZh5MX04C109Cq//Nb73jBfOgvQrTcXXaeAHyI0Wy0ala/m8RSxPTMPto+9SAZfKhjzEuf9dALcK/MprVmOfYjA2s/mLVJViZOaEyBK0aWjhskYzWNNCiKQWbT0uBDczuXyid1j4j6KwK6XMFJ7m6f6bMIvS98CeE1NMyNJomff7355Ej72K3cxNNvO2VJUNCi7CfZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isuUXFU3aVnUHuNZ4TxOcT6Z0LOJSonCcVgTuUHrtCI=; b=hv4pQiV4mAOyQgcETeNw2lAl3+CY16Nx493QE5aOH9NEqPDTqG6W9MLiiox4UH7tRUt0+MHyyWIe8xpl2/3aSdUgaaPAsPj32s9aNrPy1/4hIlr8etd5xaAafRbbHlE15spi9m7YPi79XgAfj/vyAOnMgCQCR3qFire+DEfazNTczNlO9A+uJUXl3wvAk6Z3W87+WDnR/iuW0G//XpYlRLLfhg+virX5VDTr2q3yZ4IOEtGI91+Qh1Xtnvpis/V/1pJx9WwMlXkEBhA0GI10JojVso4VC6k1IMFtlqxvQnHAuWgphIXVN+7cuJmur7T4sV5f47dzxaVx+W+qAUf/Lg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isuUXFU3aVnUHuNZ4TxOcT6Z0LOJSonCcVgTuUHrtCI=; b=REjwvEkuZ0fQYwyJVKz0xIQebbT+U4ZOiJeEO/gee9UL8XPALhPVUOOwzd9Y81o0gwHxU1UwXY+KEZIIbPaZJuyXV4nHrGlJNchLPCYmRh5ui82WM9Fck/g6/vzDjE9LlFl2ifUaFp4z7UTEODDv9upkN9AY8ZU1Qj0MteY0rT0= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3490.eurprd05.prod.outlook.com (10.171.186.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Wed, 15 Jan 2020 08:50:09 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::68eb:ad79:71f4:110f]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::68eb:ad79:71f4:110f%3]) with mapi id 15.20.2623.018; Wed, 15 Jan 2020 08:50:09 +0000 From: Slava Ovsiienko To: Ferruh Yigit , "dev@dpdk.org" CC: Thomas Monjalon , "declan.doherty@intel.com" , "stable@dpdk.org" Thread-Topic: [PATCH] ethdev: fix switching domain allocation Thread-Index: AQHVyu/W4k+ysKhC40KlZLdwTW2eM6frZ06w Date: Wed, 15 Jan 2020 08:50:09 +0000 Message-ID: References: <1576759626-27977-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c7214faa-ced9-49cd-7968-08d79997ed31 x-ms-traffictypediagnostic: AM4PR05MB3490: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(396003)(366004)(346002)(136003)(39860400002)(199004)(189003)(66556008)(66946007)(76116006)(26005)(66476007)(7696005)(71200400001)(64756008)(5660300002)(6506007)(2906002)(54906003)(52536014)(86362001)(81156014)(4326008)(81166006)(33656002)(478600001)(8676002)(53546011)(55016002)(316002)(9686003)(186003)(110136005)(8936002)(66446008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3490; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z4iJF6l+CNRSLTc0oFyiXBuj9mjHIAB8pfz5MH8klp4mSH23M7gj8DUGBBiZs6ndfHmXutJU4JE1Kmi8sbUsO93aVZpUo8FkNeVC1DZHuVvvdo9vez5BIZXWgrU58QoEuvMcTI9V0nQdV2uozK3SyRy221auqTaLNjbAQ+EUi7gbfrBQTTwlX3kK8kISjPCy/JXgStvDg5ApyN0PJ8y0T3xNcMN4EEJ4FhkLwVHd8Z2Q8xVJgkeKhSeR3s58FEJlciMRvokty2lo+zMw9w3T88plLn8OQzAKiz08yjy1orICFXKqmBCIkekBExrGSqp6gVB3fVIv5O+r17rjsWdd0eZtv2dmjM+SNyKgxoMZd7pd4KN3ptcgKwGN+FS3eg7ESSnveYwrKHVq0txFUPF0hPpa9/GqVl3QSLlJObEhMZbC3rVLq8gsBLAuT882esk+ x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7214faa-ced9-49cd-7968-08d79997ed31 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 08:50:09.3978 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UK61IAfbaN0eEGBdT0DAyuiNt+SgkCNuBtZM5sq4QQV2OPAzSQ7cVVjRV12mDCYv4KqyPkE/sH5KhbNBKYleE58cw9TI3xB8ddbiF4HDqG8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3490 Subject: Re: [dpdk-dev] [PATCH] ethdev: fix switching domain allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBGZXJydWggWWlnaXQgPGZlcnJ1 aC55aWdpdEBpbnRlbC5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIEphbnVhcnkgMTQsIDIwMjAgMTc6 MzINCj4gVG86IFNsYXZhIE92c2lpZW5rbyA8dmlhY2hlc2xhdm9AbWVsbGFub3guY29tPjsgZGV2 QGRwZGsub3JnDQo+IENjOiBUaG9tYXMgTW9uamFsb24gPH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