From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 925DE37B2 for ; Wed, 19 Apr 2017 16:47:13 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2017 07:47:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,221,1488873600"; d="scan'208";a="958755258" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by orsmga003.jf.intel.com with ESMTP; 19 Apr 2017 07:47:11 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.187]) by IRSMSX109.ger.corp.intel.com ([169.254.13.12]) with mapi id 14.03.0319.002; Wed, 19 Apr 2017 15:47:11 +0100 From: "Zhang, Roy Fan" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix padding calculation Thread-Index: AQHSuRqYS247vTDm10Co/SoZVqZCMaHMxUVQ Date: Wed, 19 Apr 2017 14:47:10 +0000 Message-ID: <9F7182E3F746AB4EA17801C148F3C60409E9AA56@IRSMSX101.ger.corp.intel.com> References: <1492612674-147730-1-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1492612674-147730-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWUzMDc5Y2EtMmVkMy00YmQzLWE4NzUtODFiODliMDgxYjFhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZuT2JuVnl0SVNqTU5JS0xDYkJXak9NMXRYWVc1Ykl2VkhHNU9kY0lTQjA9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix padding calculation 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: Wed, 19 Apr 2017 14:47:14 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Wednesday, April 19, 2017 3:38 PM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix padding calculatio= n >=20 > For padding calculation, it is necessary to know if algorithm is a block = cipher or > stream cipher algorithm, and know the block size for the algorithm. >=20 > In the application, this block size should be only the cipher block size,= but if > authentication was used too, it was being overwritten by the authenticati= on > block size, which is not needed. >=20 > Fixes: 27cf2d1b18e1 ("examples/l2fwd-crypto: discover capabilities") >=20 > Signed-off-by: Pablo de Lara Acked-by: Fan Zhang