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 9F85043BC0; Fri, 1 Mar 2024 09:07:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FA1A4025C; Fri, 1 Mar 2024 09:07:42 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 36E7A400D5 for ; Fri, 1 Mar 2024 09:07:41 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 17C6F206F0; Fri, 1 Mar 2024 09:07:41 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [PATCH 01/71] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 1 Mar 2024 09:07:40 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F28C@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <20240229225936.483472-2-stephen@networkplumber.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH 01/71] cocci/rte_memcpy: add script to eliminate fixed size rte_memcpy Thread-Index: AdprYwbnJ+3p2Az2TzGuQFt+qph8DwATHTZw References: <20240229225936.483472-1-stephen@networkplumber.org> <20240229225936.483472-2-stephen@networkplumber.org> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Stephen Hemminger" , 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 > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Thursday, 29 February 2024 23.58 >=20 > Rte_memcpy should not be used for the simple case of copying > a fix size structure because it is slower and will hide problems > from code analysis tools. Coverity, fortify and other analyzers > special case memcpy(). >=20 > Gcc (and Clang) are smart enough to inline copies which > will be faster. >=20 > Signed-off-by: Stephen Hemminger > --- For the series, Acked-by: Morten Br=F8rup