From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0063.outbound.protection.outlook.com [104.47.2.63]) by dpdk.org (Postfix) with ESMTP id A9DBC1B1BD; Fri, 6 Oct 2017 07:01:57 +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=MvUV2wzsZIbNgdZ8jGSaJCJAbmWm/fcYAcNcD2IJFX8=; b=K0wJdPDyxn+JqSbR129ae5PSB5PR2+Jcvhviv9dwjpptb3Px6gaieCO6jTPe+JlIIWEz4gUPy6xsmmm81AE9YTE4gxnPfu+BWD0bBbWaJ9Xy5p/HnmYJpeS043OWqwRIBWFVyRhsXqRWgiNfajlbR4vYAEo1OoGasGM29dDIa9g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from yongseok-MBP.local (73.222.116.174) by AM5PR0501MB2033.eurprd05.prod.outlook.com (2603:10a6:203:1a::19) 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 05:01:54 +0000 Date: Thu, 5 Oct 2017 22:01:40 -0700 From: Yongseok Koh To: Nelio Laranjeiro Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, ferruh.yigit@intel.com, stable@dpdk.org Message-ID: <20171006050140.GG19330@yongseok-MBP.local> References: <9603c091a45da3cec77a3122498777960b83b06a.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: <9603c091a45da3cec77a3122498777960b83b06a.1507207731.git.nelio.laranjeiro@6wind.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [73.222.116.174] X-ClientProxiedBy: MWHPR11CA0038.namprd11.prod.outlook.com (2603:10b6:300:115::24) To AM5PR0501MB2033.eurprd05.prod.outlook.com (2603:10a6:203:1a::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 024c2478-e08a-48b7-03e1-08d50c775da3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:AM5PR0501MB2033; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2033; 3:inB4BIVeyvKSn+E3kYa74T+rGDemCfVWFnT40OXShnmAUCfN8vaN3gxm6Soe+gXBZpfwGStDP4BBf3c0q8DuP3CS1fZjdvV0OjCEILO+BF/CGHDg/unwRUMxM3YJr831GGsIlwe3sCOqoXvjQObJ0pVWSam6n4GpqdskUxcSYl6zx8ptxNNIitZob9OGeX1WSAatz0ft3xFZL+1nObS23sZt717BIuqV80RwXpvh1/wDcyOBkUMfJng7MmzTDAlH; 25:fdVc8f79DPGV+BEZOmWdSwYulzmOItQf96Xsm4mcfSj7R2yxnwRqdJEfygy/1QKihnsYc8KajlY6EdEgvCaJ+Fzd5/mdU5DOj9kisp5Su+w21OkR7oXCCBh4WhHK3oc+IIG7mazVw/ulhPwLn5sUdpjlEbh2C0UuNsczdWT5vgo6ZA2NP5zscibC6oeoOLEYwVETGtTQr3/nkeEDznxaZxU9EWJoer0j2I3G5z9vlSYQc+TInPnHGF9AIFlpQnjhjoVweLStcKI5d8lx0o9FchJJ3ke6UtQECRoK/fXz316SjNtG+g4qCjfEV1fejWQbjlCStEMSUqMNJxsIr4DfNQ==; 31:JJp5qJ7v1BchVCLPu2nTLzL5yLpU8vRxEshpcys1Eluk771qrmlY2c7zmcJU0jQYBp/IMM0px2QAoo77wGdQ/kEnS2qQxxJfBDAGzWFVWyPzWVrRWqTVXVayKXqE6KNx/crs0uwc8cjjS4vdorXtVzMsz47z019ZnsGlrgawHtoLIS5ksCvFiQ+nwaoH8iHGo/arh9p6nbb4Svwl/I+EUVlB8BcFM+HWdSSGll52os8= X-MS-TrafficTypeDiagnostic: AM5PR0501MB2033: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2033; 20:x4mnseZrGubHN2gM1inSmqwPh8A4I+lvEE4y07f4aOXYgf3RsSz1sLLQzUwT0Oni+yWNnsxYwuhVUoJtlVMi/ZwhGrXxyTqSXym3yK7FSPz+lJwTIYKriqIws+f00pQip/6ss+ARQYfB3igwxpPdVe2rpwS45UJRPWz+zlYSYhi8oGylvQmIrLbxh6ZWHt7yipnLFq1DAhXqOVl5UftVKUjfVnHl6Aqw3Aw5DK1j221OKc/LSsXgod7zG1IjyHlu0GeEw4eL0ucZ1utt8yKXT2VpAgMXS2xnnyT37a1Mh2cqlrY8lQKWLHSBV3Fq85iFCbqsd0RfCCURwKMiKAoQTtgZWM4RlceGy3Oju2AKDRrcOxqF4P/TYyK7on3iRBO1oE9Pur81S7215EQ5d7/YfQWm7+cuzE5RtTx8Hzd/tDFAmsI3msYD7N+7bq7qTQxrqPQdXL7/KkW3MI5NSdxndCubLP+z851P6PO/KGS4pODd3BL0KJjj0OogaQhor5f1; 4:fStCcbBPU/eN575Mcq2aFiZEIllyJfITaoptWSOI6/s8TjCH7jEEU2bg8LUbzKjEgmbHJ+s82xTlHkOxZRE1m9Es1FISq7liSb3qUQX8xlPy89oEJbgfj7AdhQtFgJr9irRd6OKVMMOFcFqrnCqW1V514vyEj/YZ8a0zXGm9eiRd6ZwRr2fD+AvSxo/uyb08ucD2UKh11UUJRfhJMT63w992NOVj8QJRoZHTtXi+CamsrVv4gySiu88HBdIB2hJQKCRD31Q51b+wuOU4PN9h8sNmMFQ0JhsuAHTx8u21pXA= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0501MB2033; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0501MB2033; X-Forefront-PRVS: 0452022BE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(24454002)(189002)(199003)(66066001)(23756003)(97736004)(2870700001)(316002)(83506001)(6666003)(3846002)(6116002)(2906002)(1076002)(4326008)(16526018)(50986999)(54356999)(58126008)(6506006)(101416001)(105586002)(76176999)(229853002)(5660300001)(33656002)(98436002)(2950100002)(53936002)(6916009)(106356001)(55016002)(6246003)(478600001)(7736002)(8676002)(8936002)(50466002)(9686003)(189998001)(81166006)(68736007)(81156014)(47776003)(305945005)(86362001)(25786009)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2033; 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; AM5PR0501MB2033; 23:QwhFY8XrDluXyhn2djJqPmimp+AvNjP5w7lGW?= =?iso-8859-1?Q?hayR8ZKq15EEfVJLSPrj+5ONWIs9saDP8BDoPvzuvJh7M8Lklu0fZ7FozS?= =?iso-8859-1?Q?zUvbzJuqNId/RXuguNy2W/dXCXybtFmlUCFf6NNFW0Gb2D9A9ypk5ZPamq?= =?iso-8859-1?Q?l6kT9/LA2ZavPnjf44QG7kIXqac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0cowv41hD5H1Lg5kBWERd6vMXBZN3QXzny8slenJDGBaQKfcPFqZ85H/ew9PE2H2BEA8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2017 05:01:54.1273 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2033 Subject: Re: [dpdk-dev] [PATCH v2 16/30] net/mlx5: fix clang compilation error 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 05:01:57 -0000 On Thu, Oct 05, 2017 at 02:49:48PM +0200, Nelio Laranjeiro wrote: > drivers/net/mlx5/mlx5_rxq.c:606:6: error: comparison of constant 4 > with expression of type 'enum hash_rxq_flow_type' is always true > [-Werror,-Wtautological-constant-out-of-range-compare] > i != (int)RTE_DIM((*priv->hash_rxqs)[0].special_flow); > ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Clang expects to have an index going upto special_flow size which is > defined by MLX5_MAX_SPECIAL_FLOWS and value is 4. Comparing to an > unrelated enum where index my be lower cause this compilation issue. > > Fixes: 36351ea34b92 ("net/mlx: fix build with icc") > Cc: ferruh.yigit@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks