From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 4C7633796 for ; Wed, 1 Apr 2015 21:47:55 +0200 (CEST) Received: by wgdm6 with SMTP id m6so64560390wgd.2 for ; Wed, 01 Apr 2015 12:47:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=g7J89vC7vMA6x9brF8joO1YSBWBd6Zc9kMABBX6+LMY=; b=FozA5jZIa0MAzt/r9vBWWQUIEb/gw8c6TXMb9oaQSjs5tLncTDfH9NEqx1I9lhME0k +A+oa0L2H7Ek3yrBQM4b69qlBfXqtopk7EHV/4300FtvBiqlwIfaZ/UO6Z6soMevny9X W7EFfswZLd8mU3m0inBihcBEszYvC6cjgks+4rvvoeruR20+XeD+i131cTVdGJ7sRC22 OjXGUPokb+qDqM1qYGQrackVDDXm8i2LXBoCkbMw4Q0I/SoaAjX8KspgL2p31BTV+SjW FRF/79mi35EsJOJ1tJPzW/q6zC519J5nGn8GDdXt4L82xqHi8D9hpJUvuLcrPA9vASjP 58/w== X-Gm-Message-State: ALoCoQmXH3Y2Ka4Vlbs6AXv+T8AGpPwa3mxkI5yzIp3DhLWAlTRXr/2Jkq+cFBPJXkphvwk4bqwa X-Received: by 10.194.179.194 with SMTP id di2mr18873495wjc.4.1427917675174; Wed, 01 Apr 2015 12:47:55 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id lb6sm4070479wjb.22.2015.04.01.12.47.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 12:47:54 -0700 (PDT) From: Thomas Monjalon To: "Wu, Jingjing" Date: Wed, 01 Apr 2015 21:47:12 +0200 Message-ID: <2448344.3u2K6bc5gF@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <1423740143-29708-1-git-send-email-jingjing.wu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 19:47:55 -0000 > > Klocwork reports array 'src_offset' may use index 16. > > In function i40e_srcoff_to_flx_pit, index j + 1 can reach > > I40E_FDIR_MAX_FLEX_LEN. > > This patch fixes this issue to avoid array bound. > > > > Signed-off-by: Jingjing Wu > Acked-by: Helin Zhang Fixes: d8b90c4eabe9 ("i40e: take flow director flexible payload configuration") Applied, thanks