From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0076.outbound.protection.outlook.com [104.47.1.76]) by dpdk.org (Postfix) with ESMTP id A7C331B1FB for ; Fri, 6 Oct 2017 19:30:29 +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=NdhlnKspd9fv18cCp3ILbaVx6uR+1wnfr95RDhFI9bg=; b=u6y9xxYv3mo/8hc6vZZAvVa2sOIyUkRgCAPOVsr3cTpQAxXdrsNtznIpkVgSufuIVFOX2s+pSV+EpmirBCgbdL2RiZjXR7OGFOaGdXZAwheXtYkVSTVtT18dkb+V879qJcZtjyu0l/suuqzNsOn4T6uJIIXXeEiZhaEH1ybhM1I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from yongseok-MBP.local (209.116.155.178) by HE1PR0501MB2044.eurprd05.prod.outlook.com (2603:10a6:3:35::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 6 Oct 2017 17:30:26 +0000 Date: Fri, 6 Oct 2017 10:30:14 -0700 From: Yongseok Koh To: Nelio Laranjeiro Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, ferruh.yigit@intel.com Message-ID: <20171006173013.GA19913@yongseok-MBP.local> References: <8f61b0656eab8f398c065b72f2496dc785fde0f8.1507207731.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8f61b0656eab8f398c065b72f2496dc785fde0f8.1507207731.git.nelio.laranjeiro@6wind.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CY4PR15CA0005.namprd15.prod.outlook.com (2603:10b6:910:14::15) To HE1PR0501MB2044.eurprd05.prod.outlook.com (2603:10a6:3:35::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48e8111f-1f51-4611-1e3b-08d50cdfef49 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR0501MB2044; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2044; 3:aRKwXHrBtQdsfSDgg+FbnGcdjdby5N37cAW5eFxQOT4YMi32hxcB7u6DMv7BNHTgvs75I7vVhphpXdhwbIc2256HrdJCR6UCbjyATR05wHsR/p6KfpIDSbvJRHciODwtOS3cXLWGg7U3z3kx3wFnJGBCcHsYjs0no1Tl8P6TDxEWlJIv0BUg8QFlSK/QQzcQ1ACB3hvUwwipWFfumb3DS+wr43UAGObv8qIDvij3fmA7rRcPLyanSLEKz8HJgWVr; 25:csHiVuviDy7fD+pCUns/poaUvcI62+Q2M0nCkGES7ajQGiWwo0BhJHM0U9uFRQPXOPDif2I0w/Is8ekI/82AfZHdhNcrFbfE2biRB7XQ5VYAbGrKW2ErDRHvX2+tfFyAc0J7DtFqu3dL9IG6sNTCIJOUWuzJrk8/PpvZpZlNuagcN1IvMUuWUND4AERMT0NGK6QJHcUMWUgZ9m32CUPjBtbPqzDUvdk6bu1FaXI9bOx2+kM8EEb9nl+N1F+LndaII51K3c44S2AR/uC5aKlr8qmEgnjW9Fsk2UJni/ErKwVnBfucY3Ha4u5o/mpLxHOt+W1OUAnpV5chTdhL/AiLBA==; 31:XMbbvT+8DnHh2iQIiaEM68yVNuNQF0NmJarJNC11iK1nfZO9Mam42GQpUfZdRNYIe7+dgxRBnTA84QJkWxbQGjjzcPJAC2Afw/eJMHOI/VWcR15PA+bKz0ZqbLesRawuEIKmm8fk1RfwkpOqMCciIUb++rqTZIISyT4oJXMLkMLBEuui+85zsL48xWuI0toJoC7nYNVS5Z3ZTSj3mPkuTuYTB7peSZ1YgIPmGphRlQw= X-MS-TrafficTypeDiagnostic: HE1PR0501MB2044: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2044; 20:XFbSVtF0ihsnTqwURYaozYn69JcI5k8b5SH+buhD1YhE5Y+aZxdKuNkO3HSw1guvz3ULXZuSFlej2QvePIBQc5oqNtQLgbb6awmQ6qfwZz2ZM5bT7+/aCALyxjObQSOGrPIICHACX6z9K5AlwOVCiawN+ORotzN24+pKX66inMN+Nbt/KpwRO5hFLYNO5J9ZuthEOB8Fa9P253rJynbvROzqRhsgc4ozEzp22L3YqQ1a2zRw9erTDd0RJIpkFzMmbO33m/983gUeearBGiomEgXJlhR7scDJwBt59lSVrFqBL2NK4mO4jr7NfQc9boqZzmbCZRU8iBmtVtdCUMZLkAB2y6/0RUsudtoFTcyex1NednNu+w0e5H++MSdXHowRS59Sv3AlOQ1PgeFZE7GlMX5q8ybBnLAVGiMHTOf9Lr6+JcEPmhUtdMkHnAH03X0JlEo5m9wof9Dt2mh9pvCT7UMlfDZ08RFg1z1u4akCMMN4XpicbPcExTdqxxfWifap; 4:bXEfWYo+VuE0LlUKNtYwNYOjquzLk/DRSg6fG1UOh9+SZU8WTEo7MTSXhyJ7JlaFEq/WIP4ZKfCtYesX77Ar6eNli8FFMUz+E+fE0TbSWCu2KBp8UfUji70xwHEHwJBoG7CJiAswGUSpsU44FNudcHAeL3eoc8WHoP7LRetZEpYn3xoA6Vm5Yvo0fhrTg0tNrHdIezYWxeFsUWONWa4ZaJ2oVkRAC+quI+MKoBLlDvs7EBpzKMfebYbCmpayJzwV X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0501MB2044; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0501MB2044; X-Forefront-PRVS: 0452022BE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(376002)(24454002)(189002)(199003)(66066001)(83506001)(305945005)(7736002)(8676002)(81166006)(5660300001)(9686003)(81156014)(8936002)(2950100002)(50466002)(58126008)(86362001)(25786009)(316002)(6916009)(55016002)(16526018)(23756003)(189998001)(6246003)(53936002)(50986999)(68736007)(6116002)(2870700001)(478600001)(76176999)(98436002)(3846002)(4326008)(6506006)(105586002)(2906002)(97736004)(106356001)(229853002)(101416001)(47776003)(6666003)(33656002)(1076002)(54356999)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2044; H:yongseok-MBP.local; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; HE1PR0501MB2044; 23:sEBZW+g0xuVcHtdf+Us67M32ilFRFQgsVmR0f?= =?iso-8859-1?Q?QazNvwm+HI3jU7PzK1JTPKTNqxwGSzh20xM1/Q1lKscgQsVc6+tIQ4ZWso?= =?iso-8859-1?Q?vIRHvtgru9lImeOAVRw2/VYKy9kEFG+nnmj19dBdh8jjbdfSODmZDRKYZQ?= =?iso-8859-1?Q?+Oo9IG+RnP3p3gWCvMzaKhEWNjMZPYVU9WqaVk3Btll+m7V5TcQO+W0AO3?= =?iso-8859-1?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Ply+6AZsqLaeCU+4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2017 17:30:26.3329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2044 Subject: Re: [dpdk-dev] [PATCH v2 28/30] net/mlx5: handle RSS hash configuration in RSS flow 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: Fri, 06 Oct 2017 17:30:29 -0000 On Thu, Oct 05, 2017 at 02:50:00PM +0200, Nelio Laranjeiro wrote: > Add RSS support according to the RSS configuration. > > A special case is handled, when the pattern does not cover the RSS hash > configuration request such as: > > flow create 0 ingress pattern eth / end actions rss queues 0 1 end / end > > In such situation with the default configuration of testpmd RSS i.e. IP, > it should be converted to 3 Verbs flow to handle correctly the request: > > 1. IPv4 flow, an extra IPv4 wildcard specification needs to be added in > the conversion. > 2. IPv6 flow, same as for IPv4. > 3. Ethernet followed by any other protocol on which no RSS can be > performed and thus the traffic will be redirected to the first queue of > the user request. > > The same kind of issue is handled if the RSS is performed only on UDPv4 or > UDPv6 or TCPv*. > > This does not handle a priority conflict which can occurs if the user adds > several colliding flow rules. Currently in the example above, the request > is already consuming 2 priorities (1 for IPv4/IPV6 matching rule priority > and one for Ethernet matching rule priority + 1). > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks