From patchwork Mon Apr 10 13:28:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 97164 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp1355819obc; Mon, 10 Apr 2017 06:28:22 -0700 (PDT) X-Received: by 10.107.30.67 with SMTP id e64mr52418099ioe.54.1491830902582; Mon, 10 Apr 2017 06:28:22 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y75si14286662ioy.127.2017.04.10.06.28.22; Mon, 10 Apr 2017 06:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1610663C9A; Mon, 10 Apr 2017 13:28:20 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DE742635B7; Mon, 10 Apr 2017 13:28:18 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9F03563A2E; Mon, 10 Apr 2017 13:28:17 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 5A09663548 for ; Mon, 10 Apr 2017 13:28:15 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id 75so10968508lfs.2 for ; Mon, 10 Apr 2017 06:28:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=DJPdzfsFZy32NbK50mPemO5j+5qrCSoRFUpp7xKuLcI=; b=KSGD0zG9zfvf+xTDJT7Lk5t0AoWW2omuZJ0NM9xDwKplRoAC8hv2I73ToWbQaQCy8O M8NoypgdtMgsNuPfi0WC0/JKz5M+0tYyuoQs6U4O9RExw3uVmVpjjkAdMdwdmAbmsBmF LEvrSU5FMoytEbsBuYjoM8fTbfEAdbto3BqrppJ1LMR4T1MpWNS7Fp8c4RMjBTNq6XcI BqYtgM91wQvh6R1LVEjM6//pYiJhpljAEJs0bYaE51kaxw8UNX2rVK21srpUXbu2J/fA OOBMz3fifLiAC4WfqlGS6wbSGwV+Z7bxgqH2zvANiYHUAcxDanedHuc08/EDeG4Shg1k 11ew== X-Gm-Message-State: AFeK/H3f7FgkdGNX+UgZAU0Euqf2tNY7I/62VLWQ6RveebFqjFugFFXPlRVd+joKfTZHN5e3CaHmBw1U X-Received: by 10.46.15.9 with SMTP id 9mr15584636ljp.108.1491830893885; Mon, 10 Apr 2017 06:28:13 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([94.25.228.46]) by smtp.gmail.com with ESMTPSA id i1sm2901803ljd.47.2017.04.10.06.28.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2017 06:28:13 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 10 Apr 2017 16:28:09 +0300 Message-Id: <20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [PATCH 1/3] api: ipsec: make num_pkt/out/sa/opt unsigned X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" It does not make sense to specify negative amount inside num_*. Make respective fields unsigned instead. Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/api/spec/ipsec.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.11.0 diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index a0ceb11a..56553519 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -920,7 +920,7 @@ typedef struct odp_ipsec_op_status_t { */ typedef struct odp_ipsec_op_param_t { /** Number of packets to be processed */ - int num_pkt; + unsigned num_pkt; /** Number of SAs * @@ -929,7 +929,7 @@ typedef struct odp_ipsec_op_param_t { * * 1: Single SA for all packets * * num_pkt: SA per packet */ - int num_sa; + unsigned num_sa; /** Number of operation options * @@ -938,7 +938,7 @@ typedef struct odp_ipsec_op_param_t { * * 1: Single option for all packets * * num_pkt: An option per packet */ - int num_opt; + unsigned num_opt; /** Pointer to an array of packets * @@ -1010,7 +1010,7 @@ typedef struct odp_ipsec_packet_result_t { * fragments. All the fragments (of the same source packet) are stored * consecutively in the 'pkt' array. */ - int num_out; + unsigned num_out; /** IPSEC SA that was used to create the packet * @@ -1051,7 +1051,7 @@ typedef struct odp_ipsec_op_result_t { * The operation updates it with the actual number of packets * outputted. */ - int num_pkt; + unsigned num_pkt; /** Pointer to an array of packets *