From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0048.outbound.protection.outlook.com [104.47.2.48]) by dpdk.org (Postfix) with ESMTP id 646911B662 for ; Wed, 11 Apr 2018 15:01:16 +0200 (CEST) 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; bh=dDiUoQZXuB1JJO823mDlQnY7GkaKYtM+8Zcs9xNxs5M=; b=Eny9lSGy+2cEU4xvLJo8OahD3owWDS6wlcvxTeYd+JTXpNbt4U1g9P6g+YHpHIBoJ73J1zseLpodK/1opaYW7udoFI8PCLTfZpjpDzEdoQFAtwch+vdxtOdH3VrdxN5cZ9xHrwcfJKzEEjfWc6s/II4rSMKjTrD/OanjFc1/qSc= Received: from VI1PR05MB1678.eurprd05.prod.outlook.com (10.165.235.152) by VI1PR05MB4144.eurprd05.prod.outlook.com (10.171.182.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.10; Wed, 11 Apr 2018 13:01:13 +0000 Received: from VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::b8e2:e81f:98a:b6d0]) by VI1PR05MB1678.eurprd05.prod.outlook.com ([fe80::b8e2:e81f:98a:b6d0%14]) with mapi id 15.20.0653.018; Wed, 11 Apr 2018 13:01:13 +0000 From: "Xueming(Steven) Li" To: =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= CC: Shahaf Shuler , "dev@dpdk.org" Thread-Topic: [PATCH v2 13/15] net/mlx5: setup RSS flow regardless of queue count Thread-Index: AQHT0NDWRjy1zauDR0WijjDuYsfPFqP7ggmAgAAGIlA= Date: Wed, 11 Apr 2018 13:01:13 +0000 Message-ID: References: <20180410133415.189905-1-xuemingl@mellanox.com> <20180410133415.189905-14-xuemingl@mellanox.com> <20180411123721.dylf3ilszlg64sdc@laranjeiro-vm.dev.6wind.com> In-Reply-To: <20180411123721.dylf3ilszlg64sdc@laranjeiro-vm.dev.6wind.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [114.83.166.179] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR05MB4144; 7:g0IejCE0aGM7ZAU+MIS/krN13sb93V9tHfxx2mSWGyXZkvrNATJZla/au5ww9Poxklzw5GnD3htHA0oiWCWWO1XNOBkvwOi7qiM5UhFVmNOAIjCCW9XNzESvwtvKsEGY/mP7pYgRaBuhakasS+vzflNSInGa9bZnDAG4n3biI21VtPdXSU4cK2eXOc90ZqtmubHs983yFZodhcs2AzLxXXB1TtXsVejridTzXO2VanMuHHQwKOQHELO0Q894tAXe x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4144; x-ms-traffictypediagnostic: VI1PR05MB4144: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:VI1PR05MB4144; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4144; x-forefront-prvs: 0639027A9E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(366004)(376002)(199004)(189003)(13464003)(68736007)(55016002)(7736002)(106356001)(6506007)(305945005)(105586002)(53936002)(186003)(25786009)(6436002)(9686003)(6246003)(99286004)(5660300001)(81156014)(8676002)(76176011)(86362001)(14454004)(81166006)(3660700001)(11346002)(446003)(2900100001)(3280700002)(53546011)(59450400001)(8936002)(7696005)(33656002)(2906002)(316002)(54906003)(6916009)(6116002)(74316002)(229853002)(3846002)(4326008)(66066001)(102836004)(5250100002)(476003)(486006)(478600001)(97736004)(26005)(26953001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4144; H:VI1PR05MB1678.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-microsoft-antispam-message-info: kqZykkv8CIrr9LqbLDWGsEbTqq022PzrEDPGKRt7UYnjraJMHGOAcyDQDQN3EXREFvtFxklCogpVhUoGr1q4VEmyaUJuLi1XLNXS45pwVXR7GeyESOXUYcnYPLibL70+5s3OJvUcBfojJ0xohgTSNVuttI7vea6qAsaNZ2FKHc1dcpuprToH+eY9vd62bfJKtFKtHOvLUmmeiKDxqK9/fsYRsuC+sU7TEci57PU21ujDt6DzpUh6W8Ehphv9nMxPc5O3eAL5q6LVelc3N/NGgWq8un+IG0M7pukxqxb/PXBUpybHMcNbQQZxCzT9YtzO0nlIXp/6hqpTWxPbBZBLx7jkbo2MZ/R52no0Uk3AvafJrXSnBiphHdLtps5j+pdr94Kea0Y131lviXXhJjtoaoqEP4L0Ygz986KhGgrul/8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 942cc077-3022-4fde-05bb-08d59fac4e2c X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 942cc077-3022-4fde-05bb-08d59fac4e2c X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2018 13:01:13.6554 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4144 Subject: Re: [dpdk-dev] [PATCH v2 13/15] net/mlx5: setup RSS flow regardless of queue count 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: , X-List-Received-Date: Wed, 11 Apr 2018 13:01:16 -0000 SGkgTmVsaW8sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTsOpbGlv IExhcmFuamVpcm8gPG5lbGlvLmxhcmFuamVpcm9ANndpbmQuY29tPg0KPiBTZW50OiBXZWRuZXNk YXksIEFwcmlsIDExLCAyMDE4IDg6MzcgUE0NCj4gVG86IFh1ZW1pbmcoU3RldmVuKSBMaSA8eHVl bWluZ2xAbWVsbGFub3guY29tPg0KPiBDYzogU2hhaGFmIFNodWxlciA8c2hhaGFmc0BtZWxsYW5v eC5jb20+OyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtQQVRDSCB2MiAxMy8xNV0gbmV0 L21seDU6IHNldHVwIFJTUyBmbG93IHJlZ2FyZGxlc3Mgb2YgcXVldWUNCj4gY291bnQNCj4gDQo+ IE9uIFR1ZSwgQXByIDEwLCAyMDE4IGF0IDA5OjM0OjEzUE0gKzA4MDAsIFh1ZW1pbmcgTGkgd3Jv dGU6DQo+ID4gSW4gc29tZSBlbnZpcm9ubWVudHMgaXQgaXMgZGVzaXJhYmxlIHRvIGhhdmUgdGhl IE5JQyBwZXJmb3JtIFJTUw0KPiA+IG5vcm1hbGx5IG9uIHRoZSBwYWNrZXQgcmVnYXJkbGVzcyBv ZiB0aGUgbnVtYmVyIG9mIHF1ZXVlcyB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