🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21472

Re: [RFC] net: ena: use tx-push-buf-len while tx-push is off

#21472
From: Jakub Kicinski
Date: Tue, 24 Nov 2026 02:13
45 lines
9811 bytes
On Sun, 22 Nov 2026 10:32:31 +0200 saeed bishara wrote:
> > - We still need to tell the device how many header bytes to pull.  
> Just to be clear, the device eventually will read (pull) the entire packet
> I think  tx-push-buf-len should have been called tx-inline-header-len,
> as this is about how many bytes of the packet's header get written by
> the driver into the Tx ring descriptor.
> IMHO, we better introduce a new parameter, that is agnostic to
> push/pull mode, we can choose to deprecate the current one in the long
> term.

Agreed on new param, not sure about "agnostic to config mode".
Or if we can deprecate the old one since its uAPI.

The driver can store both values in one tho, effectively forcing 
them to be in sync.

All the new one tx-hdr-depth ? max-hdr-len would be more logical
but we use "max" to indicate the max value for a param.

You can add this to uAPI of ethtool or a driver-specific devlink param.

> > - We want to use tx-push-buf-len for this, with tx-push off.
> >
> > ENA is the only in-tree driver that uses tx-push-buf-len, so this does
> > not change any other driver.
> >
> > Example on a device that supports pull mode:
> >
> > ethtool -G <dev> tx-push off tx-push-buf-len 224
> > ethtool -g <dev> -> TX Push: off, TX push buff len: 224
> >
> > The core already allows this. net/ethtool/rings.c checks only the
> > capability bit and that the length is not above the max. It does not tie
> > tx-push-buf-len to tx-push.
> >
> > In a 2023 review Gal Pressman suggested using tx-push-buf-len only when
> > tx-push is on. That was never added as code or written as a rule.
> > Link: https://lore.kernel.org/netdev/30cb3990-80ce-ca07-6d73-cdc00d0ad7b8@nvidia.com/
> >
> > Request: Please confirm this is fine or if not can you please suggest another
> > way of achieving the pull mode len setup functionality.
> >
> > Thank you
> >  
Technical Details
Message-ID: <20261123181346.383390ae@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369956-linux-kernel-netdev=dewy.ru
References: <20261118041238.14396-1-evostrov@amazon.com> <CAHfVqdVw9OQ4OPmpLp4pJQhFw_9E7SLwNDjYXYuuGkU95=gGdg@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369956-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC] net: ena: use tx-push-buf-len while tx-push is off
Date: Mon, 23 Nov 2026 18:13:46 -0800
Organization: Usenet Network
Message-ID: <20261123181346.383390ae@kernel.org>
References: <20261118041238.14396-1-evostrov@amazon.com>
	<CAHfVqdVw9OQ4OPmpLp4pJQhFw_9E7SLwNDjYXYuuGkU95=gGdg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="4032207"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:knGH4WwB9tUwhLv8TjUu5jDBfnk= sha256:s+r+hnGDR/z0JZvb4MMkRtOxZwBSIoat+s9WVyL3ODY=
	sha1:T0wnnWeQcAfg+D5fR0mpgrVNLok= sha256:FX2MEq6XQbzypo0S2UUD2/ZEA4g9p4oVWTIcF7Bj+Hw=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 08C51125DC7; Tue, 24 Nov 2026 05:14:04 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id dDYlDenBxKgL;
	Tue, 24 Nov 2026 05:14:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369956-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 461ED125DC8; Tue, 24 Nov 2026 05:13:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 937AD303FB; Tue, 24 Nov 2026 02:13:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795486429;
	b=lO11utC+WCPm2l/LccVmwxw+EnZsGGIDRoNMpAAtIgES5ek5kZpyPxsqpEqER9AtOVI/
	 l+AaK3Z3fMH7iiZL18UufuF+TeBZqMoVf/W9wET+Fc+v+te972koh6rrJviDPRfCpMww2
	 R4+Hs4CrmOi5xFCc28bLtEWTsNDScTi++ppk+mIMmpCVCD0qtd+v7Vnzuqe/6sbjvQcU+
	 /mcOEEgp1dztSS1OZWWxYziFIDtHG274lFZyj/kgYIt/dBuQXFvUkCRBdPahDXJsgUqPi
	 3xhzpcYP1kUEFABhi4We8FTlXb3a7xc1JjejzN1/MzfgujlP9sTIIDhqJqjvIVeZEWw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795486429;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=iG76FGe81ThjV+MovbjEJeBgKtdQS9FtFDDtexgCiYw=;
	b=3zuRnmRkRdKt8r//g91a6lvYDV25SgSS47TqANQhYZCqHf6VpdgcXqJQSN93lT59B4Z4
	 qA1WUzs906K4txlrROicsC1IktS10l6196bval+LwvWu5HPitHcDQLQS4ke0t2n5ANtFc
	 G8pNmSQ3OTHY/cVLO33C+CGAxeHse7u7OH5B1L+qxk0hwl/a1X2qb7CFmzaAFVtov7fFq
	 p4vNokXs6qWPtDDY/2zHJwg6nGyuYTyVrYwQA4VnTivR00VWGn/xX5wt/bkF8uhmPNoq2
	 er4BQXFaaWNxHno1G3B4e92HkqPoEW8lvLXOivaXlWbz+NDghCq0jGuLwDn0RpSpQAQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HCwEqIcE;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 50963606A682;
	Tue, 24 Nov 2026 02:13:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HCwEqIcE
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795486428;
	b=ciEI0LRJVYqWmeUsoxneGEMBKiwbe5R03q4KYEtzq0wFDqrKCZoJ7yY7nP2RjnG9erx3
	 SmbjRWCQnSKMhnOvlVv18nRQa9zNljE0W4ELBy75ECEZhGu9Nx9uBJNftfuWHT8EeUF7E
	 nsSFx++dEEU2Qt/HV4MbaISBj5oTODADL+FCHHP6l+PPI7/4wEguKV967f1+KCy6rpRkb
	 dhx67j0HefZrXDbwIx9boOxXWPTBQ063YvMrBXBfohU0QPetqsotWwpLpib2Mnzl/KEUy
	 a+dQ6a81BEhQUKM2mVd2359TMWzPowwaJire9r98IPuV98bXkZVV+6U+bX6GGUmXlbQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795486428;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=iG76FGe81ThjV+MovbjEJeBgKtdQS9FtFDDtexgCiYw=;
	b=TKbr6n4o+37GS21zdE+2nguJ42ppH7JoPiCcy9diPkkZxLsgBopo1ZvwkUvdYNkpzz8n
	 t1wR5O5XbdbH/thn4MdxiNcDyfOOduu6EDhKhWmNiJOQv2coj8YHKBiTik9vBdhmCAZ7j
	 fR+qKvGCeQQXjQkwKEi7DBvzq/lrNA3JQ+SWID4R6xcmF88j+WemaOwnHVYQ7PELkHRN1
	 I/ggo+rUMVTrxsrv3K+oXJdxaKqs1B85/BMPN0aKdrhDLo8FcjEFXCxtcnfshiU19ERTB
	 vRGYRuek2D3CDltDzEE5pk8rXZ8i/xZR8ox/ChPA4c2aXGKgWVRMIfX8/4DsAK4Mdgg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HCwEqIcE;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62C52606A689;
	Tue, 24 Nov 2026 02:13:48 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 584611F000CA;
	Tue, 24 Nov 2026 02:13:47 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795486427;
	bh=iG76FGe81ThjV+MovbjEJeBgKtdQS9FtFDDtexgCiYw=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=HCwEqIcEAMMMWCCWWlS/tldOhuh/rRcy0oYH+/1XbYzOavxDQRI2vHIFjQLtgzEK/
	 /RIsR2B22d8dCLoID/WL0Fa7h4VF6ZeXxq79fsgYDrapfHkMm9Ik9z0JTuk9eAtwvY
	 o8UuI9im5oODW60Zvq8qq9dXvQRwDdJCxoi7xMU0N3djdhgaeWQtBa1u275YVq1DaQ
	 BHgxs0gGDGKwVvBADgwePNJ+JmLZ6hOTNlVvf2B9Wq8cINIpervegrQogTi7erE3zT
	 DPa4QutDvEWvjJHCnrbnLD/RmHA3M0sIPtQlBqMdpcAacvMOrZePlMsXOhpxwmhicR
	 kc/l3SeFnNApQ==
X-Cc: evostrov@amazon.com, netdev@vger.kernel.org, David Arinzon
 <darinzon@amazon.com>, Shay Agroskin <shayagr@amazon.com>, Arthur
 Kiyanovski <akiyano@amazon.com>, Gal Pressman <gal@nvidia.com>, Michal
 Kubiak <michal.kubiak@intel.com>, Paolo Abeni <pabeni@redhat.com>, Eric
 Dumazet <edumazet@google.com>, Kuniyuki Iwashima <kuniyu@amazon.com>, Shai
 Brandes <shaibran@amazon.com>, linux-doc@vger.kernel.org
X-In-Reply-To: <CAHfVqdVw9OQ4OPmpLp4pJQhFw_9E7SLwNDjYXYuuGkU95=gGdg@mail.gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list