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 1FA0DA04FD; Wed, 28 Dec 2022 18:37:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC51740A7F; Wed, 28 Dec 2022 18:37:06 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 7543F40698 for ; Wed, 28 Dec 2022 18:37:05 +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 18:37:02 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87610@smartserver.smartshare.dk> In-Reply-To: <20221228090320.5fd76919@hermes.local> 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: Adka3k49GP2r4VXcTfCySs3HETbzOgAA+UbQ References: <20221202153432.131023-1-mb@smartsharesystems.com> <20221228151019.101309-1-mb@smartsharesystems.com> <20221228151019.101309-2-mb@smartsharesystems.com> <98CBD80474FA8B44BF855DF32C47DC35D8760F@smartserver.smartshare.dk> <20221228090320.5fd76919@hermes.local> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Stephen Hemminger" , "Rasesh Mody" , "Shahed Shaikh" Cc: =?utf-8?B?U3RhbmlzxYJhdyBLYXJkYWNo?= , "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: D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