From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id DA9679AD5 for ; Tue, 7 Jun 2016 22:23:04 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id k204so84510864wmk.0 for ; Tue, 07 Jun 2016 13:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=rOUw1ldmqLBwKtbiz8ath6yTf5iC3fgUFkHgfGz8Nh4=; b=Ntd5UsoSk+IdaX6S3NkXOJ1ds601W+Bb6tbDU0zjcHwJlyEKMXgE2AVG6KSWTaVT04 K/E0COnzuBh6bFzwdix43t7Ff7N3r2vdlAGEWdX4Oab2RDxwLa+VZNkiA2+GDTOJJM1g jPrNIwaj69q5hOVxkKP4AK8EmO02wjeI0wxVBaX8PPa6IW7yzvB3kedk09iAyN1mnpL1 UhzxAg4x4FphRKEznK9Ilgqog9G69Ov0BBPPGz+wlzsqunN93rXyBmAZZglYy7SAXpYS hwmsai5UJVue06UJRLY285f2UsHxPriytwNQgskzqB7qR/xUI9GNgfP5oAEpP7YPJhLL t/ow== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=rOUw1ldmqLBwKtbiz8ath6yTf5iC3fgUFkHgfGz8Nh4=; b=S4AIcDIc7JGiAz3vlaY6fEKLuVOWGUOvUilz/rjp33FnyrUSrjeMjgjs7oY6L8mj65 ebH4TBn+BswnnSap9USJWVfGpkcSMT+jrIxBDQ0CtR1ywfKtnJZdL5vUqrnpGoZMtLyp dnZqS/idVHY0vQqKLBTPSwFKXBq5qA+PNvHBPzxAWKADeUfR8a6qWV2Q3TgsMtteInLZ SmF2ECH9KGAHVmtoppfd8X2oD400xaRG64CedfFt/S52Z+hd0y/GoXaSc4xrV1vJ8yuD QsIHbQKxtb+qEaFLF+Fb5aTMbyOWOol3lgMR1T7Z2uS6jpFCenujLnmFnLHEJ04d7JOd ry5A== X-Gm-Message-State: ALyK8tLlIKFgh93uaRhHj83i6Jfm9pS+3gJsMyXLBxXFaJRxw+Woksntm4odBAEtbf9xoi2a X-Received: by 10.28.36.8 with SMTP id k8mr1381259wmk.66.1465330984558; Tue, 07 Jun 2016 13:23:04 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id h14sm21063068wme.1.2016.06.07.13.23.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Jun 2016 13:23:03 -0700 (PDT) From: Thomas Monjalon To: Pablo de Lara Cc: dev@dpdk.org, declan.doherty@intel.com, Min Cao Date: Tue, 07 Jun 2016 22:23:02 +0200 Message-ID: <3165538.0Ecj1rrkI9@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1460455443-11130-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1460455443-11130-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] l2fwd-crypto: fix supported key size check 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: Tue, 07 Jun 2016 20:23:05 -0000 > When initializing crypto devices within the app, > the provided key sizes are checked against the supported > sizes from the crypto device capabilities. > > When the supported sizes are not a range, but a single value, > the check may become an infinite loop (when size is not supported). > > Fixes: a061e50a0d97 ("examples/l2fwd-crypto: fix ambiguous input key size") > > Signed-off-by: Pablo de Lara Tested-by: Min Cao Applied, thanks