From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C52CA1B780; Thu, 1 Feb 2018 05:43:06 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 20:43:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,443,1511856000"; d="scan'208";a="24034751" Received: from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.198]) by FMSMGA003.fm.intel.com with ESMTP; 31 Jan 2018 20:43:02 -0800 From: Zhiyong Yang To: dev@dpdk.org Cc: stable@dpdk.org, pascal.mazon@6wind.com, ferruh.yigit@intel.com, thomas@monjalon.net, ophirmu@mellanox.com, Zhiyong Yang Date: Thu, 1 Feb 2018 12:43:00 +0800 Message-Id: <20180201044300.12332-1-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.13.3 Subject: [dpdk-dev] [PATCH] net/tap: fix ICC compilation fails 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: Thu, 01 Feb 2018 04:43:08 -0000 The following error is reported when compiling 18.02-rc2 usng ICC, "transfer of control bypasses initialization of". The patch fixes the issue. Fixes: 1911c5edc6cd ("net/tap: fix eBPF RSS map key handling") Cc: stable@dpdk.org Cc: pascal.mazon@6wind.com Cc: ferruh.yigit@intel.com Cc: thomas@monjalon.net Cc: ophirmu@mellanox.com Signed-off-by: Zhiyong Yang --- drivers/net/tap/tap_flow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c index 212992e49..65657f0a0 100644 --- a/drivers/net/tap/tap_flow.c +++ b/drivers/net/tap/tap_flow.c @@ -1930,6 +1930,7 @@ static int bpf_rss_key(enum bpf_rss_key_e cmd, __u32 *key_idx) static __u32 num_used_keys; static __u32 rss_keys[MAX_RSS_KEYS] = {KEY_STAT_UNSPEC}; static __u32 rss_keys_initialized; + __u32 key; switch (cmd) { case KEY_CMD_GET: @@ -1975,7 +1976,7 @@ static int bpf_rss_key(enum bpf_rss_key_e cmd, __u32 *key_idx) * map index as an out-of-range value and the release operation * will be silently ignored. */ - __u32 key = *key_idx - KEY_IDX_OFFSET; + key = *key_idx - KEY_IDX_OFFSET; if (key >= RTE_DIM(rss_keys)) break; -- 2.13.3