From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2340AA0521; Thu, 23 Jul 2020 17:47:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E9821BF7B; Thu, 23 Jul 2020 17:47:25 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id CE43D2C6E for ; Thu, 23 Jul 2020 17:47:24 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id f16so3261030pjt.0 for ; Thu, 23 Jul 2020 08:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mTZoq0K+mFgOTequVRory9VR6CjiJnE9rqPKdUjuQcg=; b=P0Wgz1l3zBttp+0BMQgeITMXWgH7mxqMn8eHnk0YZ30IGqjlZ+DhbDjo7XhMMTbNYc u2enYAi9mhOL9vHRULHhYutERBx0ImdJb5eXc9ru/soTQcbKnYkTb0gAfk2/8GGxETyj jLTeHDLJBeazZ+fCkXJz4DZxsIwGld8b8GvIAEH4cB+yiOQmJ4tFeIBFlgDlefGHeyJR +dsfhdr5KmGxugoGefk8oTynelKRGccrw895bhQwjnmqtuwsOQs5JmGdJdTv+u4N1E5n ZAZsUCsqzw20ytINXuJvkYhQNOvvrsSOX3th71bIz4xoNAk7CE0h18ZhMlo23HdJ0fb+ Tjmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mTZoq0K+mFgOTequVRory9VR6CjiJnE9rqPKdUjuQcg=; b=pC07Uypob+hWm0RJ7V6rNAs90V2+2fgYFaTbCvxFaMJLovo197h9nOj/KyClghH8Dg wqiOlQ4wKUpvwwSxfohdwxMc2f1X9RpBc0Z7jgYGVR7Rbnfz/bd9GLObzTqINMSl2024 eEmMS4sy+XJ8VDjpMnJHrYNfdNzHeZXGpqqxR08kGvytzMvMF6DGzNHPFddupMhUPjwt JlltTTz7j5ggkisW8Ut2WzGk9fvEAxi2ZofkFH3dtZMELOEgYq+irL4mhAJdS7xzgiPk yOPgX/AXBCE7AWy8HOV4rSTjBxhz3dQrMyd4hfZ921SxkJvsWSdjRXsQI71XeVwuck4N scAg== X-Gm-Message-State: AOAM533454R9BxvXkTYYtcVJ7WQWMKy4IcCY7FL0Y4rAAKt6DxnzlvQv dgYd/MD4fHvZN0BjOJAEgTO+Ow== X-Google-Smtp-Source: ABdhPJw55uqVFhWRqY2pDZqEOAzy2tgrvGBEEEh5ZDUrwgGv1KdsKK+MC4XzQYHXJOe5aUUjDemWGA== X-Received: by 2002:a17:902:fe04:: with SMTP id g4mr4330646plj.66.1595519243664; Thu, 23 Jul 2020 08:47:23 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b185sm2837437pfa.148.2020.07.23.08.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 08:47:23 -0700 (PDT) Date: Thu, 23 Jul 2020 08:47:15 -0700 From: Stephen Hemminger To: Sarosh Arif Cc: olivier.matz@6wind.com, dev@dpdk.org Message-ID: <20200723084715.1f055aff@hermes.lan> In-Reply-To: <20200723070240.14749-1-sarosh.arif@emumba.com> References: <20200723070240.14749-1-sarosh.arif@emumba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mbuf: replace c memcpy() code semantics with optimized rte_memcpy() 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 23 Jul 2020 12:02:40 +0500 Sarosh Arif wrote: > Since rte_memcpy is more optimized it should be used instead of memcpy > > Signed-off-by: Sarosh Arif Really did you measure this. For fixed size structures, compiler can inline memcpy small set of instructions.