Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp881111ybt; Wed, 1 Jul 2020 12:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfT/GJwnfmpJcc2tMquxxgWqsPhqOulqs9Mg12JgbJuEXzfuislD4VhlmFEQ6rvkxGjuIX X-Received: by 2002:a50:9f8c:: with SMTP id c12mr27705211edf.149.1593631185206; Wed, 01 Jul 2020 12:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593631185; cv=none; d=google.com; s=arc-20160816; b=Q5ja8kxgzZds+m7U29EmAgenIAnaRnQwYbvs4nH9deI3ORq8ComCrtgfgygP6iLMVZ fw68IaRdXU7baDJLGwDVgLeL/MngtnFmwcTLSLTcqSRoglS4qP23bBwdP3VKTybj+JnK KZv3FYRTqz7fHGtqENC6opabsl48vCW9DQgiT/9g+CS9Z4GKo2T/dhKsyEU7rQ8AdwAj L0Ekj4k3rWllfXxvjYaP9y/RfsCV6S1s+2vbO7Zfs818oWrYYP33Q7trjMk8CtIZ8cRs QZdnvoolOuReH2fF+lAh4n68vsbpCgD3MJfMkKf/WUnPD/LlQeDDvDSqxwZU9Rw7cv4M AdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xVbq41HYiUuhXfB/SOS513rA/0EbUDHepxgXv4IoTvs=; b=bN30ZnC+Zd9VyKgtNdQAZiI9fMfJZjEVlc8RBq08N3rOj6KwVPYtYH1rK+c71uXhGb NDheJvVGiIvRgmjxlYvTQYxjrS53A1fTx/H3YXzoPHh2OyyNoXulrtAVzr34y4LQrjSB SWtYuSw77hhzd7pGVL9aQLI1A/f/MdeDB3m0vAPSdpl0O3uOsZhBDcy95lfbXEfFJK+/ JCeFEKkWHX1AXJ7k7Asv6txDPfgNRsI6kcEl20m6APcvkUyQ81x/KpHoHbQf89CkkZu/ 86oSOkSSIf3N7QJkx2SjfLfbzVFHa40YbTlelnZUDQqc2GumSckEn/H1ZuR1K+cEJzYI C33g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eBNWrmdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy15si4336870edb.22.2020.07.01.12.19.21; Wed, 01 Jul 2020 12:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eBNWrmdQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726753AbgGATSt (ORCPT + 99 others); Wed, 1 Jul 2020 15:18:49 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:25050 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726255AbgGATSr (ORCPT ); Wed, 1 Jul 2020 15:18:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593631126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xVbq41HYiUuhXfB/SOS513rA/0EbUDHepxgXv4IoTvs=; b=eBNWrmdQQ/8JOTPccqBKRQCTvIQHxTd73L1N678HWIvmBiPGV+S/2fSAvqkszq6TrygXgs Ro/+h3lEqaGhQAXWscEescdkce72JqY6hQrIUcB/nRMNJpFnVitBQgcaXAt4mbAPc4lo+j nMEeQO7DHKuCU7hvlcnyVZvzmxgHqR0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-199-1yYkT_APM7Ce7kXnFly36A-1; Wed, 01 Jul 2020 15:18:42 -0400 X-MC-Unique: 1yYkT_APM7Ce7kXnFly36A-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 39C7819200CF; Wed, 1 Jul 2020 19:18:40 +0000 (UTC) Received: from carbon (unknown [10.40.208.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76E7F60BE1; Wed, 1 Jul 2020 19:18:32 +0000 (UTC) Date: Wed, 1 Jul 2020 21:18:30 +0200 From: Jesper Dangaard Brouer To: Matteo Croce , Ilias Apalodimas Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Sven Auhagen , Lorenzo Bianconi , "David S. Miller" , Stefan Chulski , Marcin Wojtas , maxime.chevallier@bootlin.com, antoine.tenart@bootlin.com, thomas.petazzoni@bootlin.com, brouer@redhat.com Subject: Re: [PATCH net-next 0/4] mvpp2: XDP support Message-ID: <20200701211830.74a2f53c@carbon> In-Reply-To: <20200630180930.87506-1-mcroce@linux.microsoft.com> References: <20200630180930.87506-1-mcroce@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Ilias, Could you please review this driver mvpp2 for XDP and page_pool usage? On Tue, 30 Jun 2020 20:09:26 +0200 Matteo Croce wrote: > From: Matteo Croce > > Add XDP support to mvpp2. This series converts the driver to the > page_pool API for RX buffer management, and adds native XDP support. > > These are the performance numbers, as measured by Sven: > > SKB fwd page pool: > Rx bps 390.38 Mbps > Rx pps 762.46 Kpps > > XDP fwd: > Rx bps 1.39 Gbps > Rx pps 2.72 Mpps > > XDP Drop: > eth0: 12.9 Mpps > eth1: 4.1 Mpps > > Matteo Croce (4): > mvpp2: refactor BM pool init percpu code > mvpp2: use page_pool allocator > mvpp2: add basic XDP support > mvpp2: XDP TX support > > drivers/net/ethernet/marvell/Kconfig | 1 + > drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 49 +- > .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 600 ++++++++++++++++-- > 3 files changed, 588 insertions(+), 62 deletions(-) > -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer