From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH 4/5] net/virtio: introduce a helper for clearing net header Date: Thu, 21 Feb 2019 12:18:12 +0100 Message-ID: <6e1f9f80-ec4f-d870-5bc8-44e8b7c2397e@redhat.com> References: <20190219105951.31046-1-tiwei.bie@intel.com> <20190219105951.31046-5-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Tiwei Bie , zhihong.wang@intel.com, dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 11D282B9C for ; Thu, 21 Feb 2019 12:18:16 +0100 (CET) In-Reply-To: <20190219105951.31046-5-tiwei.bie@intel.com> Content-Language: en-US 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 2/19/19 11:59 AM, Tiwei Bie wrote: > This patch introduces a helper for clearing the virtio net header > to avoid the code duplication. Macro is used as it shows slightly > better performance. > > Signed-off-by: Tiwei Bie > --- > drivers/net/virtio/virtio_rxtx.c | 46 +++++++++++++------------------- > 1 file changed, 18 insertions(+), 28 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime