From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D5B091E203D; Wed, 4 Sep 2024 18:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725474599; cv=none; b=G9FQFlILrL2CY/5qEuv7Yt/ICC0zpKWEU6eauYfvmT4Ry2DiwnterMad/kp6Oh4+QLIM8joOeV6KmWSq1yMqfZg4cHpsErgEQb88rzQkTkYSqaSakG83ZSBL3gm/6bpH0ntz5uChOpt1qIFDT0CD/WyeGoP/ImvfPbN4DwzRC+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725474599; c=relaxed/simple; bh=3osTPUwTmGcKwPH//xm+7vmLa4zw4IUoIj5wosRXRz8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fHf0xXbLd4PFm8GHCIpv3L2EUslArZdhMOI7y8jku+DKpqYOmrd01yxlHEPi07nMuBaYC/+D4EEpGiUeImC2SJADlItjQL0jNQ65THWA++gExFMQizp2/P6UjnyuDRAYzEFGUN6Mu2KHrAxzS/gAVdFGp1l1zWOMLKQsMmIjp14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ih7DV+zp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ih7DV+zp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DCACC4CEC6; Wed, 4 Sep 2024 18:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725474599; bh=3osTPUwTmGcKwPH//xm+7vmLa4zw4IUoIj5wosRXRz8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ih7DV+zpB9TOtau5uTgvSF3mLuNm286RYOZhYn8xv0aC59XfUJMNiHPNE7a5OSTfC +c7sugu3Gp4ProSoUZmnzAZ2wSvT89khm8HKvsdfRedjlpwrlG7QEd5zNOkYwCyOpL zWcSTJaCtSk4EmnJvF0HVEfAFxwR/qcqGDTJCYCXWpSCWzioQ0qw7c1S0PcnLnsFen eej7v5viNV5x2dm5diii+e+PHrLoUPesbwU+zBOVE00K0M/DUNJ8+oGIzaQaX+Lltm nivJFQ0yV8CptgeVIko+jJHy9itRq2d+Tq7zVgq2zwPg5nLMDWu1NajMJTouQDAJBp 9BW8ud+/G311g== Date: Wed, 4 Sep 2024 11:29:57 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Lorenzo Bianconi , Daniel Xu , John Fastabend , Jesper Dangaard Brouer , "Martin KaFai Lau" , "David S. Miller" , Eric Dumazet , Paolo Abeni , , , Subject: Re: [PATCH bpf-next 0/9] bpf: cpumap: enable GRO for XDP_PASS frames Message-ID: <20240904112957.3aaaa734@kernel.org> In-Reply-To: <03634fe4-8c2f-432e-ae6e-08928d167b1f@intel.com> References: <20240830162508.1009458-1-aleksander.lobakin@intel.com> <20240903135158.7031a3ab@kernel.org> <20240904075041.2467995c@kernel.org> <03634fe4-8c2f-432e-ae6e-08928d167b1f@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 4 Sep 2024 17:13:59 +0200 Alexander Lobakin wrote: > >> I could say that gro_cells also "abuses" NAPI the same way, don't you > >> think? > > > > "same way"? :] Does it allocate a fake netdev, use NAPI as a threading > > abstraction or add extra fields to napi_struct ? > > Wait wait wait, you said "NAPI IRQ related logics doesn't fit here". I > could say the same for gro_cells -- IRQ related NAPI logics doesn't fit > there. gro_cells is an SW abstraction. Yes, that 1/4th of my complaint does indeed apply :) > A fake netdev is used by multiple drivers to use GRO, you know that > (popular for wireless drivers). They also conflict with the queue config > effort. And it did cause us some issues when changing netdev_priv() already.