Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1946111lqg; Mon, 4 Mar 2024 08:19:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUcU1x4Utqen3l+eYHzY/9nE5fUqiq4v++e+2ozBIrDI09hY92YdIIT4UBFkkyeyFny21DTEtCZVoQGQzgGT8Tz8iATkvQVIkQ5ACb8sw== X-Google-Smtp-Source: AGHT+IHUOynvyfIsgbDjh1bBgXLmJ2yXgrBWx7CIP69OfR+xHFF4YHH/zu74nclOax0HpQZ6D/lY X-Received: by 2002:a17:90a:fc96:b0:299:6ee1:592a with SMTP id ci22-20020a17090afc9600b002996ee1592amr6583043pjb.47.1709569190233; Mon, 04 Mar 2024 08:19:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709569190; cv=pass; d=google.com; s=arc-20160816; b=w5aUo97E8yDROhH8xbmvNL96q6ZDDrjaFzI/kCFD4IVlcFblzuSCjk3ZFW8SBKl2V5 qix02UTR7hfF4kyPpmkvKWgxnkkFKoLwGPIcrDTNlvaM7glfB0CSZdhTX9e4cGKreIoF HrZ5annmokZ5GUq/qg65Z6wto8v1C0o5GsPGAjv4+QvdPOqkci5gGo7mSW6+ZT5z5VWo 4OiB5p4cUyosTn7GpRuEHDQmsM+1EIk6qUcI87lHil3jKoJM/7tnkp3C21XM8/simiyX kfQL2OsCeNiWrrUR1SJMsrQS0ot8954/7YyW7niOYsOusCt2Q+BrvIFdgPezZw4/2gVm 4ekw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CdaQvHwf+ypTWs9CggIGE65EMaPW1/VFzdPOqyKDsys=; fh=3ctplm0YYH75iDlgiCP8HHJyNrK6pHgySL3Bqcs6mTw=; b=0u4cFcPmk0goK+X/lgCDVsgLtbICIrIg+b717QN5j+AvhmpEtT2CjyhGCmZ8GH4KlD 9sf5My2Fmy1yh1MukRzYrPo15xqZOJ9QGJQzrz2zjWlLWf+zgKb+GtLnPl73fTKdC/Mu fKESPS23X3tdDq+ACnM9BBX5X5NhnnHxSPE6B+H4I5jyxwMbtMYhRuoa/OlAkWX3Y2zg CTJAGvDKceJPt3fZLc1KWkADcS1CfKs30Q43kZzZRq7ygFPujIrVZdiXUfFXWvjL2Ag9 wRh+F+NVc9++NJouD5JykExtTx+ZOxgYHmQD+/7KMYqvqxYjS1fF+I7RgcUZTcnIUKu2 KCcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=MoTW53kM; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-90920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90920-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 2-20020a17090a0a8200b0029901e7381dsi10643398pjw.135.2024.03.04.08.19.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:19:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=MoTW53kM; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-90920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90920-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D3FA282124 for ; Mon, 4 Mar 2024 16:17:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80D334BAA6; Mon, 4 Mar 2024 16:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="MoTW53kM" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C65BC4CB23 for ; Mon, 4 Mar 2024 16:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569016; cv=none; b=VwBp8WMRQMMe5ByRjiLy9KA3NObCXT4y64zrfr/cirGMyfxGIYqPzI5yUdkHC9CXvHnGLj7zwXcltog7tEBqOHY3aFZtp0bKw3/HuUAqMASLXEk3Ln6g2+TX8Ad8WZNRGPyShU+K0AVMr4R6WT08ZspGG8pWAn4t2XvjOBnOciU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569016; c=relaxed/simple; bh=4qX90gAaeAFrZRINJudmZ0QqdDhJAmm6o0qc1B/GWAM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=takYY2XUKsFJHgbXnra7csOTQhFeSwIJP8/kyDYoGrG3efGijjJOxS4bi1AVaifCDuQTcuz5I4kxAgQkrvUsHcJnZs1d1dRSJhamGq+IewcSIfBHVu7CG/5E/p/IBw3dabHMHjnEhR1Cyw/eUYQUSmDzqoxO80L7n6Psh1zyKqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=MoTW53kM; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-513298d6859so4323056e87.3 for ; Mon, 04 Mar 2024 08:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1709569012; x=1710173812; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CdaQvHwf+ypTWs9CggIGE65EMaPW1/VFzdPOqyKDsys=; b=MoTW53kMZVcrVCLu/YQstYE4WEbBX3gmujRjc8U3j437q9pstrWz8W/TjdzN4qtLsm sc7RUTWf+NWTZR+QZfrL7wWAqhXgR/TBQJ9gmJyZ/dn0rPImZ6YOETetzviUh+pdQqxd fvN5Cpv6JbD8wFM3yS8bBqCygF0daj5nMvvhuVdDSq8nmqlTgF97fgFO2xB8MAx92bBy IAn/RIAJrPDRfkato24SdHlnGBdG61+fIcxwGbcbGSZMTeZ40SWTp6p2LhlRlzbP0KQZ G7ADPSkf8BEJVy30z+TpxSWf/GGfWaksNY3kNWyzGJlm2tOgeRWDau9WoRm9k3YZ/dg5 Kqyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709569012; x=1710173812; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CdaQvHwf+ypTWs9CggIGE65EMaPW1/VFzdPOqyKDsys=; b=On1YTCQz4pI/Pkv3+VB+4ik+nP46WyucHegOPu1/Nbah/YUbJguYdJ9eUL9IqSydJL Kt3OsTV6O5+guwPOh1GZ5E8lLomLOiSrfeDLJJgxvpcJiGd3jIqVEWFErfen3ENSzdEo LU9lgJfGBlEWDOYi7LB36g6hAEwFzZenvHPOsyKFLnGQMwTpDV4i5neIAA4iGDgt84I8 k4pEHm52+03utfYG5CJm3iVd4mKEM9UMa5K6TaTmhPrfaPsqz2oC+f5gOnhwZaaalzl4 KMJe8XqFkqBFGiiX2ZoqJorPnLK/zMUnTSE8lhjmQL34IkK/MOTN15pLr+UnzFYNV/nY nB+w== X-Forwarded-Encrypted: i=1; AJvYcCU1JdySiS9nLePjk6QxvwUXt5Ia6Qm6HXQpG+2gR1Z6ZFug7FWwoAEbNVVMXMUjfIZjDRV/qRWK8/TZFo2oKx7I1YTB6iVziD4/e46d X-Gm-Message-State: AOJu0Yya1D2MoN0pWGns1qPUyczwPbD8udZM+TErjzMignGEdic9yofU JivjULSEkNlu+jX8I+GfkfAMysn2KfKYHCwYiGCQ184JHYHY/wqAYkGx2fVSr9g= X-Received: by 2002:a05:6512:251:b0:512:d877:df6f with SMTP id b17-20020a056512025100b00512d877df6fmr5958110lfo.2.1709569011686; Mon, 04 Mar 2024 08:16:51 -0800 (PST) Received: from [192.168.1.70] ([84.102.31.43]) by smtp.gmail.com with ESMTPSA id i27-20020a170906265b00b00a441c8c56d0sm5000056ejc.218.2024.03.04.08.16.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 08:16:51 -0800 (PST) Message-ID: <52952362-dea8-40ec-a0f3-2bdbe26cb83f@baylibre.com> Date: Mon, 4 Mar 2024 17:16:48 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] net: ethernet: ti: am65-cpsw: Add minimal XDP support Content-Language: en-US To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org References: <20240223-am65-cpsw-xdp-basic-v2-0-01c6caacabb6@baylibre.com> <20240223-am65-cpsw-xdp-basic-v2-2-01c6caacabb6@baylibre.com> <356f4dd4-eb0e-49fa-a9eb-4dffbe5c7e7c@lunn.ch> From: Julien Panis In-Reply-To: <356f4dd4-eb0e-49fa-a9eb-4dffbe5c7e7c@lunn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/1/24 17:38, Andrew Lunn wrote: > On Fri, Mar 01, 2024 at 04:02:53PM +0100, Julien Panis wrote: >> This patch adds XDP (eXpress Data Path) support to TI AM65 CPSW >> Ethernet driver. The following features are implemented: >> - NETDEV_XDP_ACT_BASIC (XDP_PASS, XDP_TX, XDP_DROP, XDP_ABORTED) >> - NETDEV_XDP_ACT_REDIRECT (XDP_REDIRECT) >> - NETDEV_XDP_ACT_NDO_XMIT (ndo_xdp_xmit callback) >> >> The page pool memory model is used to get better performance. > Do you have any benchmark numbers? It should help with none XDP > traffic as well. So maybe iperf numbers before and after? > > Andrew OK, I will add benchmark numbers in the next version. I will also fix a potential issue with TX buffer type, which is not properly handled in this v2. It should be set for each buffer, I think (instead of just being set for the tx channel before initiating xmit). Julien