Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3007410rdb; Tue, 26 Dec 2023 12:23:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYuko3/DvpJ3fqsFOual7RItcF50rJe9VZr9gGXUbT+0rFgglxGscxaU/VfYf9MWMA5WTJ X-Received: by 2002:ae9:f00c:0:b0:781:4cec:7c75 with SMTP id l12-20020ae9f00c000000b007814cec7c75mr3602762qkg.38.1703622234622; Tue, 26 Dec 2023 12:23:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703622234; cv=none; d=google.com; s=arc-20160816; b=Jv7upPEvLsyKkZE6ZmUO1gQdqy2GgvXPU0Y/uxfmr0pDbdHQdkB2VGlT7nr9/vs1mD d/CFcgRm/qOk3MQGjC2TctpK+sxpF7BWbodrDyUO8ZpLCJ2x7Qis9FiOqXW6btM1CTaa /7xPobpVhVj5bRDsFmOE3USO0feq/YFPBQyM/EwpvROYpj/gTNm2Dptt5ia00o3DKFp2 Nl1A3bbZ72UiTQdm9bLEF0muKQvIr+mf09enCth8uFiNex/CCQ59J3EyteZy6K07X8rB z8/zlFukybsAiFC/gd5+gYTA56RxHtUVa6xep3w9r3j2EvR3QBts/8KUro49ZAZw84Ea JDYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=BLliTISajJlRSyWREx9KaaHsKdXTEmO4wkxTJ/lMi6I=; fh=GekcXIp4lW4mQnFMV2Gb6JGjM5a5OQFCx9VZL14UFDg=; b=QknOtuqbUGXd5Xtnf11iSbA3gBpOY44Hpz8KlUJYyIjvUqxTjm4hkali50uj/W5YcF vjKpu3LxOKZVnN1bhk5nRODG73h60ItIrphXNRqCdtW4kgG9eMxolg0OlxKdQyIH8XlL u31J07UgQacG8DiWsGk+tG09spw/3+QZi129+WfLeEwambXcwrWRvzNFaYuzDTzR/5sU FjAHJymAPvtQxhr025bQMYGGpSxLv/DC7OQw5mFpjtrHyCZbF7xOYttyHGMRVnaDQsvZ PJEk6sBgEMcrIZsyWoMQwdVTOP/5Nb9dQ+xrRsbdDNam7lc3uwTIY+nLAKvEfk+HQub/ jwqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LM0H/V62"; spf=pass (google.com: domain of linux-kernel+bounces-11683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u17-20020a05620a023100b00780f8f53c87si13142575qkm.695.2023.12.26.12.23.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 12:23:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LM0H/V62"; spf=pass (google.com: domain of linux-kernel+bounces-11683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 5AF151C2204E for ; Tue, 26 Dec 2023 20:23:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B59C4C87; Tue, 26 Dec 2023 20:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LM0H/V62" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 035214C6D; Tue, 26 Dec 2023 20:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3bb907d28fcso2267356b6e.1; Tue, 26 Dec 2023 12:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703622222; x=1704227022; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=BLliTISajJlRSyWREx9KaaHsKdXTEmO4wkxTJ/lMi6I=; b=LM0H/V62wD6+LD5kdd+6YgDLUvL4Sv/bAVPYOx1Ihb1ysx6/USuicHHt7yLbYdV6mq CNPQsHcyPoETwTJ0C0DCEB8xFQZmYFRgVPxNzesMJzUMVm4z36xDIPg/v3xwuSxLsYf9 n6Yi65uCN7bTqYlGJW0isjR2ObB93BzYDgchpA+hpdP72mq8/rmhDyBKgvZ863t3t9EJ wEWjGHOocemhkjkzteggnH7/lqOLs7RQz0Uw3NfTA/MqhkK7qyNvhDtw0nFwBnhu0veM XGuI5htc/cqyQjwoN/jJFMV8P/EMLLaehYroEDySCq2YlgheIMheuewjzRDgr5/o1RRa jcXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703622222; x=1704227022; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=BLliTISajJlRSyWREx9KaaHsKdXTEmO4wkxTJ/lMi6I=; b=If7ahfis9BqfLyWHoWxCDW7itu9isK+Pxx9duwVdMqrYkWSR1r//8/jzUGnbkWIBtz o69MUhR3Dhst5WvxIGRCMKfSGUovnmEV3a09X5K5Rb9qIEA4nbHqBbjwa+7TebNy/1tG 76uBGz4NUrw4hU5DdwWYfCDj2qChBKvQkWWsRm5eBSyhU6Lh6sigBvIQ8czQs5jD9/tq A1sOixUwmkNxol24QtrwXXU/3reB4aL9uBs2bz2jAAzXKZCgmiv+Cw9QaGf1y8LeuNum oxJwYRhmXcq5dJ5aRWFj/i4Yrf59xFKHXgZCN9nfwedUp6dHRsNl3XW7vyJASpZ4QGjc 2mlg== X-Gm-Message-State: AOJu0YzD3kjdvMAdJS6fUlIltM/kaAIpKBSauhmls1BRPQlvzL6fENfn OGzMrbfv83SxQ40CLTayTyY= X-Received: by 2002:a05:6808:3995:b0:3bb:bf36:12c with SMTP id gq21-20020a056808399500b003bbbf36012cmr1131080oib.24.1703622221988; Tue, 26 Dec 2023 12:23:41 -0800 (PST) Received: from localhost (48.230.85.34.bc.googleusercontent.com. [34.85.230.48]) by smtp.gmail.com with ESMTPSA id f15-20020ad442cf000000b0067f5ccd6e73sm4910195qvr.59.2023.12.26.12.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 12:23:41 -0800 (PST) Date: Tue, 26 Dec 2023 15:23:41 -0500 From: Willem de Bruijn To: Alexander Lobakin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Lobakin , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexei Starovoitov , Daniel Borkmann , Willem de Bruijn , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <658b364d56c6e_5c2a929468@willemb.c.googlers.com.notmuch> In-Reply-To: <20231223025554.2316836-1-aleksander.lobakin@intel.com> References: <20231223025554.2316836-1-aleksander.lobakin@intel.com> Subject: Re: [PATCH RFC net-next 00/34] Christmas 3-serie XDP for idpf (+generic stuff) 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=utf-8 Content-Transfer-Encoding: 7bit Alexander Lobakin wrote: > I was highly asked to send this WIP before the holidays to trigger > some discussions at least for the generic parts. > > This all depends on libie[0] and WB-on-ITR fix[1]. The RFC does not > guarantee to work perfectly, but at least regular XDP seems to work > for me... > > In fact, here are 3 separate series: > * 01-08: convert idpf to libie and make it more sane; > * 09-25: add XDP to idpf; > * 26-34: add XSk to idpf. > > Most people may want to be interested only in the following generic > changes: > * 11: allow attaching already registered memory models to XDP RxQ info; > * 12-13: generic helpers for adding a frag to &xdp_buff and converting > it to an skb; > * 14: get rid of xdp_frame::mem.id, allow mixing pages from different > page_pools within one &xdp_buff/&xdp_frame; > * 15: some Page Pool helper; > * 18: it's for libie, but I wanted to talk about XDP_TX bulking; > * 26: same as 13, but for converting XSK &xdp_buff to skb. > > The rest is up to you, driver-specific stuff is pretty boring sometimes. > > I'll be polishing and finishing this all starting January 3rd and then > preparing and sending sane series, some early feedback never hurts tho. > > Merry Yule! > > [0] https://lore.kernel.org/netdev/20231213112835.2262651-1-aleksander.lobakin@intel.com > [1] https://lore.kernel.org/netdev/20231215193721.425087-1-michal.kubiak@intel.com This is great. Thanks for sharing the entire series. Which SHA1 should we apply this to? I'm having a hard time applying cleanly. The libie v7 series applied cleanly on bc044ae9d64b. Which I chose only based on the follow-on page pool patch. But that base commit causes too many conflicts when applying this. Patch 6 had a trivial one in idpf_rx_singleq_clean (`skb = rx_q->skb`). But patch 14 has so many conflicts in page_pool.c, that I'm clearly on the wrong track trying to fix up manually.