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 5467541C53; Thu, 9 Feb 2023 17:49:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 42E854161A; Thu, 9 Feb 2023 17:49:36 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 76308410EA for ; Thu, 9 Feb 2023 17:49:35 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [PATCH v7 1/4] net/bnx2x: fix warnings about rte_memcpy lengths Date: Thu, 9 Feb 2023 17:49:31 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87724@smartserver.smartshare.dk> In-Reply-To: <20230116130724.50277-1-mb@smartsharesystems.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v7 1/4] net/bnx2x: fix warnings about rte_memcpy lengths Thread-Index: Adkpq3rrB18hK2LhRyOdgd/No9PyngS+qlDw References: <20221202153432.131023-1-mb@smartsharesystems.com> <20230116130724.50277-1-mb@smartsharesystems.com> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: , , , , , Cc: , , , , , , , 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 UElORyBibngyeCBtYWludGFpbmVycy4gQ2FyZSB0byByZXZpZXcgdGhpcyBidWdmaXgsIHNvIGl0 IGNhbiBiZSBpbmNsdWRlZCBpbiAyMy4wMz8NCg0KPiBGcm9tOiBNb3J0ZW4gQnLDuHJ1cCBbbWFp bHRvOm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