Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp11791ybt; Tue, 30 Jun 2020 13:47:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGZCyi3ZizmKKubfQhyNWd8zBjnHhKIZR2ceGEgnjmN5iwJSRx9W1hIgW45Z483u3kI/Q+ X-Received: by 2002:a50:d302:: with SMTP id g2mr25400246edh.312.1593549696669; Tue, 30 Jun 2020 13:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593549696; cv=none; d=google.com; s=arc-20160816; b=KcZzox5Z8zHm2MBDBcqbxRAiaBaLiYz/mElVetNzzMpm8yy1uxc8XvWtocXFRPjKYr 3+EKn6SpU/fJx3NN2nwzIjU4LOIT3oKKaWsNLCivAb4DhMFNUKxiREnrwrc2k0hkh6BE 40RQ0mZPJKk2fmBiewaHDChBLytQHD2XDZTfbc3DVEhNOu20QoAjigbkEAlzs7jVkMRY oD3KIwWoCKrNxy1tzQZQhVixI0Ayp80XcatAIBzgjNFXgiwUqp3r4S0VPYNSxjhQ7SKq 6ycAOMTdlmXOTK7tTH0rZoK1TlG8oTl9n/vn4BNZ0xDQq1jugmxdo2L5iuBfeCT2EYjM wm6g== 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 :message-id:date:subject:cc:to:from; bh=y5Mt3w62B3XQY5/QbJq7kcGTRM0kicJutPXBswps/no=; b=l1QMWVrKIKoPZ56g53HBBXW+MbgDvwndUFlOszvO7HLWIF2/OwjMxjh0KDNO0w+cqF 1DXSBNQc+AZCslYAz2Yvzwadneuyz/KwKvU/M31G/4nM9AwbEEPR6PxjT1+m4s9Uodl0 LKwmoT30hZV3f2Yjz1BrkbPeQkTX1Z2u+wO6Mfx6SEd+t+8Gc7cZCMnYM9bcuPyxvFMy VuO5rmlOLJOe86KrFiR54K9ts9kVlZu+X+euH8auPIjbWkg+AXZszORq3nbpy0Zm6Aoc Q+QJkfWKXhzWE/tJ34SQMErKujanmZVd8kxR9q2LpB0tx4Hktuu2Pol7L1mt0hU5FYbe HKVA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 60si2404790edp.566.2020.06.30.13.41.14; Tue, 30 Jun 2020 13:41:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733285AbgF3SRT (ORCPT + 99 others); Tue, 30 Jun 2020 14:17:19 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36953 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbgF3SRS (ORCPT ); Tue, 30 Jun 2020 14:17:18 -0400 Received: by mail-ed1-f65.google.com with SMTP id g20so16886070edm.4; Tue, 30 Jun 2020 11:17:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y5Mt3w62B3XQY5/QbJq7kcGTRM0kicJutPXBswps/no=; b=LixeDIWeBO2lXyjxh7/Jrnlr6UUty9VwyYbRtnI1VgxGIelaNVVqk08FScFtmw4+PO v1iXrN26gf8mFnd8lE7aNSl++IFff5vq8S3hMAvAxKVI5h1alkcx/Hw0LPaYrOjBRMGO wqRUFZcpYCTud9ep/yyi8ZUUl73nGfNgkK0O6Y1QGMk3eI+t4kk/xqTPcJ0iYKTA9occ A+4xdJbEwxL4AGlHeQAPH86Y9VjpoDUC+UUNXxwj8DS7EUPY+ctjS4spxRHfTeUTuBbz nc4y1Hhj09Ovl0/zTZ450hWKcE9vxT5pfKrQ4vyhzfXYqK1mWM8wkJ7v2itQIs+HR/Me Bt7Q== X-Gm-Message-State: AOAM532YAkER3VLqlLnu82LQp9woWQfmiqlT/NBf2XK/msqMQ1Dlj7kj V7NJizv3oVKndFxumwpxLY6mLVvF9pB8wA== X-Received: by 2002:a17:906:7283:: with SMTP id b3mr20095438ejl.163.1593540577182; Tue, 30 Jun 2020 11:09:37 -0700 (PDT) Received: from msft-t490s.lan ([2001:b07:5d26:7f46:d7c1:f090:1563:f81f]) by smtp.gmail.com with ESMTPSA id d13sm2492313ejj.95.2020.06.30.11.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 11:09:36 -0700 (PDT) From: Matteo Croce To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Sven Auhagen , Lorenzo Bianconi , "David S. Miller" , Jesper Dangaard Brouer , Stefan Chulski , Marcin Wojtas , maxime.chevallier@bootlin.com, antoine.tenart@bootlin.com, thomas.petazzoni@bootlin.com Subject: [PATCH net-next 0/4] mvpp2: XDP support Date: Tue, 30 Jun 2020 20:09:26 +0200 Message-Id: <20200630180930.87506-1-mcroce@linux.microsoft.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.26.2