From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net-next, PATCH 1/2] net: socionext: different approach on DMA Date: Thu, 08 Nov 2018 19:42:59 -0800 (PST) Message-ID: <20181108.194259.1815551553704950921.davem@davemloft.net> References: <1541690395-8337-1-git-send-email-ilias.apalodimas@linaro.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jaswinder.singh@linaro.org, ard.biesheuvel@linaro.org, masami.hiramatsu@linaro.org, masahisa.kojima@linaro.org, brouer@redhat.com, arnd@arndb.de To: ilias.apalodimas@linaro.org Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:42338 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727378AbeKINVk (ORCPT ); Fri, 9 Nov 2018 08:21:40 -0500 In-Reply-To: <1541690395-8337-1-git-send-email-ilias.apalodimas@linaro.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Ilias Apalodimas Date: Thu, 8 Nov 2018 17:19:54 +0200 > Current driver dynamically allocates an skb and maps it as DMA Rx > buffer. In order to prepare for upcoming XDP changes, let's introduce a > different allocation scheme. > Buffers are allocated dynamically and mapped into hardware. > During the Rx operation the driver uses build_skb() to produce the > necessary buffers for the network stack. > This change increases performance ~15% on 64b packets with smmu disabled > and ~5% with smmu enabled > > Signed-off-by: Ilias Apalodimas Applied.