Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp530481lqs; Tue, 5 Mar 2024 08:43:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+2PiO68qhtMCboDZFv+1c1ilWAV3FG3sLc1kLtCx3OArPQW950tmTfrxhx1BK/LlXXqLS8y2VLhjt3VGFBlV5DAu4F+Y6y7+NilOARQ== X-Google-Smtp-Source: AGHT+IHIUghnzVh2bw2c9IW/mDxQWrPN0qUv8jYk1baYoBgqpNds+rSB5uVNRW5ZWZ1uBWji/GFg X-Received: by 2002:a25:b0c:0:b0:dc6:a74b:f200 with SMTP id 12-20020a250b0c000000b00dc6a74bf200mr9685460ybl.38.1709657026340; Tue, 05 Mar 2024 08:43:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709657026; cv=pass; d=google.com; s=arc-20160816; b=Wm1tTiRMDJ/kuxP9Yrunl+Bt4oK4IhPkqzK4pfsj6Yil+Z2IGRi/Kpbu1eCgdyuqCx YGXQIeeKvW0YrAtSkf4wMkWb5XyEV3k6+9IQcIiFoi2BVGeXHCshEEznLQ+UnPDdpn9H 2MC0bwcIFSzNn/Ati0XXdtjlxmsTytFequui8t9WKzFkFVOCUqVZ08TqnFdPRiLB1+md uZ1wgaTYkMQzEsmlIhe5MI9KV9v5/GdtLqHK2dfWCUy/C7MqNF/dTX/3ce82HtP18/H9 0PhiYpGC3pQwUICinVDxXkKPcppf0ffuvCnF5SP+vfliCWuOmrpBqXl7Zp2H/UQ5q1jS cfRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PVFgwp/QdjijP88eb7vICgQD/i/Cph89zRHBxuPxLkQ=; fh=0qm7fv6cwYglIfilZaz33dFLlYPmtQCOJvxTTh4ppFk=; b=H2/Rm/Naw3L20OHxLXo0zxi+Oe8nlwbZmaWezpCr+gk0V2ZLOebk0zktbNbK/y+5qy IMr4xSnGZEM70HnLJyimMhi9tS1tV2bck6HIOKj8AorvYc055C+/e/grXmt7BPfmJej+ /zkfMX8lpUA3d/MTrUtFf7xhnC7zULqKgGbvZ/tcsUgVXbayFI9x+zXTNU5eEnYr3pX2 fWMnxVQxHTS9GYeOxjtLfm60Iok1xJlV3pbRzIS7cFqpZdWZ3WrrQ5h9cO9k/ThksLn6 x7QJKtNJm1XYX5/XAEf4JkjJtuplzH8Iut6CLSt9FUtW1Mr+kcSoDZ5MK5BmkKLFCfrP xrkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mhUL2ny0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-92705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y7-20020a05622a120700b0042e3d44d71fsi12657516qtx.782.2024.03.05.08.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 08:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mhUL2ny0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-92705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1281C1C21357 for ; Tue, 5 Mar 2024 16:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B2E4D515; Tue, 5 Mar 2024 16:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="mhUL2ny0" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C34F38F5B; Tue, 5 Mar 2024 16:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709657012; cv=none; b=X68p7wibkvE/hUveQ5awlHkDZLs2P/u+qKI9ncDNYr0kB+/YSKczUX/EokaDIfo7BMr4APiel/ror0uOdtgOA1cSOoGpuJw/5ucDMcu4hhM4B9xJn75cioJKllftoMmX+Ks0t+679eHWDlbfPjf0N7nukGjzQvxlVjKTFjvpdds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709657012; c=relaxed/simple; bh=P6nN8nYe2p11CQet9y+FM78XpoJb0cF9rQOnA6XJi5w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d71LcvihVRxahcH+qQUvxdnJcbD7MzTcJ8RhRtrA/ppSEUtkGnZgFiPIur/zNKqhSKqb71U4DvXOwAF78k4aYkOPn156L7Y3lkvGUNPWw6zUbjznN7KFmGCLeDOq0HpQcuG46gs/6S3K2S56BaHSgMZkQoK9wWSLQZIhNE7x6Fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=mhUL2ny0; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=PVFgwp/QdjijP88eb7vICgQD/i/Cph89zRHBxuPxLkQ=; b=mh UL2ny02+IbdPCp6v1dKZFbBjeeeQDV3sgFlQePTH9Xj1Qf5l727zlZQk/V3XqUZ9h3vfqXUS37Aq2 kADHFM6R/J8U4GCObrUHbjmWU8PnlkVpr2vG9qt4EJbrkoFskDQSB9PQblK4sHK+FqBJ8+7mKNzmg ZHYTg3rHDi3vRR0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rhXtH-009RlL-BZ; Tue, 05 Mar 2024 17:43:43 +0100 Date: Tue, 5 Mar 2024 17:43:43 +0100 From: Andrew Lunn To: Julien Panis Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , 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 Subject: Re: [PATCH v2 2/2] net: ethernet: ti: am65-cpsw: Add minimal XDP support Message-ID: 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> <3a5f3950-e47f-409a-b881-0c8545778b91@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: > 3) From 2), am65_cpsw_alloc_skb() function removed and replaced by > netdev_alloc_skb_ip_align(), as used by the driver before -> res = 506 > Conclusion: Here is where the loss comes from. > IOW, My am65_cpsw_alloc_skb() function is not good. > > Initially, I mainly created this 'custom' am65_cpsw_alloc_skb() function > because I thought that none of XDP memory models could be used along > with netdev_alloc_skb_ip_align() function. Was I wrong ? > By?creating this custom am65_cpsw_alloc_skb(), I also wanted to handle > the way headroom is reserved differently. What is special about your device? Why would netdev_alloc_skb_ip_align() not work? Andrew