From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4F0E6A04FD; Wed, 28 Dec 2022 17:39:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB03D40A7F; Wed, 28 Dec 2022 17:39:01 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 8453740698 for ; Wed, 28 Dec 2022 17:39:00 +0100 (CET) Content-class: urn:content-classes:message Subject: RE: [PATCH v5 2/4] net/bnx2x: fix warnings about rte_memcpy lengths MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Wed, 28 Dec 2022 17:38:56 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D8760F@smartserver.smartshare.dk> In-Reply-To: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v5 2/4] net/bnx2x: fix warnings about rte_memcpy lengths Thread-Index: Adka12LJbjIEpaLNQqqqgW6f8ldIsAAAjdPw References: <20221202153432.131023-1-mb@smartsharesystems.com> <20221228151019.101309-1-mb@smartsharesystems.com> <20221228151019.101309-2-mb@smartsharesystems.com> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?utf-8?B?U3RhbmlzxYJhdyBLYXJkYWNo?= , "Rasesh Mody" , "Shahed Shaikh" Cc: "dev" , "Tyler Retzlaff" , , , , "Ruifeng Wang" , "Min Zhou" , "David Christensen" , "Bruce Richardson" , "Konstantin Ananyev" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org RnJvbTogU3RhbmlzxYJhdyBLYX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