🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20365

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

#20365
From: saeed bishara
Date: Sun, 22 Nov 2026 08:32
33 lines
13219 bytes
> - 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.

> - 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: <CAHfVqdVw9OQ4OPmpLp4pJQhFw_9E7SLwNDjYXYuuGkU95=gGdg@mail.gmail.com>
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-368609-linux-kernel-netdev=dewy.ru
References: <20261118041238.14396-1-evostrov@amazon.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-368609-linux-kernel-netdev=dewy.ru
From: saeed.bishara.os@gmail.com (saeed bishara)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC] net: ena: use tx-push-buf-len while tx-push is off
Date: Sun, 22 Nov 2026 10:32:31 +0200
Organization: Usenet Network
Message-ID: <CAHfVqdVw9OQ4OPmpLp4pJQhFw_9E7SLwNDjYXYuuGkU95=gGdg@mail.gmail.com>
References: <20261118041238.14396-1-evostrov@amazon.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
	logging-data="3599126"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:k9jYYKsesG1Ht1DkmQnDU0pNE4Q= sha256:cNa547uNr2NFHwzg/CGpWBnmk63V2Uc8AAXngyAot0M=
	sha1:UxShKvGwVMDZ8QMzrQVaH+0KbPI= sha256:F9K80L4hU4udkpFB6tLNmi30iPSS/WK0i8FaDh3FSK8=
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 06717125D71; Sun, 22 Nov 2026 11:33:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.049
X-Spam-Status: No, score=-2.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FORGED_GMAIL_RCVD=1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=gmail.com
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 zxC58WenZf0H;
	Sun, 22 Nov 2026 11:33:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368609-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id F265B125D6F; Sun, 22 Nov 2026 11:32:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id DC1BF303DD; Sun, 22 Nov 2026 08:32:50 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795336370;
	b=mU2TU3bGh7oD1csvPK+cNi/+yY9OWDVo70i9gjNqbweJXVd7NuObe9UwUGuiMOVom3sX
	 kNBB2iWhtXk8rC4DLlwWhWXvklFQtdfXW+yotKvXlqcxV3dsRyk38JDepuFT9esswQ3jH
	 6pM6UazO+zyAdmQpuvxy8/ybN/L6Gy6dMlDOYdo5DJY91ucUK9kLjx41upJNKaMibZx6K
	 KkJLdrxWEfmsXfqzVE1HPCdorac6wb5/28JJiBBeXNe93DUWGcJAMZmaTaTSSFsgINoxP
	 aEQYijyJowNIhiVZg/X9KqszDrYwggm5sS8n+xSxRV7Jgxj4l2APzIrXaUwBlLetEYw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795336370;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type;
	bh=yJ6P/F1jFJr0lVYrdtAG0eMDCHBsrJpW/xU1AvPrpGs=;
	b=LxtV43tXt8ISZ8h1Wsc5A33EiXTfedPTK8OOdb2QXb7cMJKx7MXSxnLTwgJb1kUWHnjk
	 WwKD2zFkKXuDkz/Yy9ch2yCxZdh3QV6JO0UTIXzfpe+WeI27PVqmEUf9AoEm7CpMYWGG9
	 wwbtjWg295gsMtsdoa9WQiiKVxcTCX9lX0UU3D8nF2e3pCHgYdpYWclEo7vdMY9LIlhyt
	 InDk6Y//JN6N5NIFh0bjAl4LS0UQ5hHsfRqG79LlZst33PyOzubMfwVAr/qAeXQSflAkp
	 seq4DzlS4fWCvmd9buYtLOptcKjBQm4HB2jZQ+s8/OeBQ3vwbNbJAA3LpRu4lY959qQ==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=XB7NeBRY;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 A6638606A333;
	Sun, 22 Nov 2026 08:32:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=XB7NeBRY
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.208.45
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795336364;
	b=V6fkEDfg869e2TbyMTH78ZykuUYiEVszbia9MmtuoxAzuPNNnOs22m+b0FRyTIUNZ+T6
	 zi9WxeP/kGg96S/ppM2EW2lphyd9zilg3eR26u8xVlDlfGxbHYyTOe+6OX/NmQsWVpqyB
	 RS5dFi/tjgfg4L+HcNwHkKUKCQjwZ2G1ICiaxfMWTx8O1TUevjfsuqpZrV+ggJhS7Mmf0
	 9XLBX0U78sY3Wh6jar0pio9yc+A1T7f8im9rGcnw5lo5LYOYlux+3GQZFT3aBPAKT4cpX
	 OB8gInamqLXQl3ehZtUIEXwTI5hRWErZ19zv+xZhsh0czXCaZZcrgm2+fHQWari7e4Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795336364;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type;
	bh=yJ6P/F1jFJr0lVYrdtAG0eMDCHBsrJpW/xU1AvPrpGs=;
	b=WdJZxyhNYK2YZjsTTv+871gxlRog9cnRfYmQoY4HCcwZQtGPX2KY1QjueSPosgUTD2PE
	 dPrYnruehOyQ5FIrv4nFiQaiAJdwoTAkeBr8lyiunvrN8ZY3sg4B4Abo6TdmL94RaW3j1
	 W8GOPgYH5h04mQJoMyZpC02Lv5JtIU+t1CtVKo1j/k4r8GFYMVxy80IKkLX6JHA6ASAoO
	 a2+mbndHrcG1L4baYmklgKdYL9w+r5SRLmNW9KZzeJaKd2PuG0Z5Guh2saflmqCECWDct
	 ZcIXkq8QpLXbCUllxMkBewhgjYXWV4XFsbCNTrg5pbiU696G5+XZ3nNWRJnap/HwrLA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=XB7NeBRY;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.208.45
X-Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78400606A320
	for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 08:32:44 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78400606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-6bab10842f8so11171a12.0
        for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 00:32:44 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1795336363; cv=none;
        d=google.com; s=arc-20260327;
        b=Hynzeu0YuWIOZSLxOPFoUW+4ItIw2/py+SYNGbYbf9QZDGSrtg/INtbTK7tlEEvVx0
         b76A6n5RZ9FjpCRCDH8/NOw9sCUwLCgG71lYcjgRDYxomgG+RKVd0qd8aUmeX4NbFsyz
         rXtdGu9+IiPWOm9oXUr8JF/zmJrxbWl7PMhCyxG6RIZ27k+S+HRQBefO1iyiUvByiwPi
         goZXSmERTWM7iYL5hy+KYuuVojp6VO1fyu7zsGD4ccAUucxy51s4WMvMHK8QcKVDkjqO
         MfsjZPCAhKKk+j2VB2b8s+NS0++bGyayTSdOCoZ2DL490JhrxRCUQawbzosNiQ/GD7sM
         6KIA==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=yJ6P/F1jFJr0lVYrdtAG0eMDCHBsrJpW/xU1AvPrpGs=;
        fh=pDsglMJuQskaY+Xc/MPkPzZSM+cKkJdwqbaFLfBO+uk=;
        b=S6O3UsilkEXhionS2N5U2pXOlL9GprpoedELiFNMRpHJgCXmvKsJqOX4KVmvOIlUz4
         xgNmt7suhKtMKFCkQVvShyeUgEAi4hGSh2NvN3wlFDavyl6k0fYmpH8/H9fyltxWhzy/
         78ylMg9W+wvtsE/fUMoFsfmAqp9hQht+IKSpgTMqWpLdXTtLYCK0vAxXcgmBwDNtR8D0
         sgQOMpV6j2GaPl/+l7K0/4a8ufcgBgq9ZDTBdf0OXcgiR7bb8ME/3R4qv17qAfQismDc
         sRJboQWXpkAao1FKvNadb06GMoo+ZzfO/9sAoMo/LJlYhdGCe2CJUmtwpnEhvAGUshEE
         Yx8Q==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795336363; x=1795941163; darn=vger.kernel.org;
        h=content-type:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=yJ6P/F1jFJr0lVYrdtAG0eMDCHBsrJpW/xU1AvPrpGs=;
        b=XB7NeBRY04euhXfWB/XxhB+DzTJzGlP9aMcTsxRixf44G2VojKxyLfPXDeVMXOFFTP
         J4DpFjZ7vFnnGEq5ETvtfFNcf4yjWA/tKzm6BKpfkJk1DMPKFI/e8Vcu5IiKbZWhUDRq
         4rIAr/b4CvqK5q1DHdNfGOQ6gZ46ae3x5Q6KYnbRoT/rKavQZE77Q/ZbXcmELdbQv/co
         IuqV2pxrKPabINQ3ndT0E3PPCa07d9/7iYw3mhuAOYldrIKh9xtwjLUDKVAo68JRPzs1
         5iUJaqhu2IsUisQZQ6FPqOAYMuD/9mx2P27dbuI7wSleqrbtVRyT8FmF7cXNmlLTS7Nu
         k/2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795336363; x=1795941163;
        h=content-type:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=yJ6P/F1jFJr0lVYrdtAG0eMDCHBsrJpW/xU1AvPrpGs=;
        b=Ib1igl6ntGop98NVOr3oE1RyQ5kAuj3iQdjK5P5hE5/RE/jOmkH09YCkKBLc/O2n72
         9ycBAp94p7k3txsokoGs+7bPTyC5VbJvh/dK2iVHYQe2sBaEMmispG0xV/FHgrIu7erk
         JQ+YlLHsNtVjr59iqSmtG7/+NTD+tiCiDHHmMboCptzAx9Miko7qysp9o2qtWAzKuxCS
         gS+yHXJcSJ3d8OsyTku6fwFIzovyK69/CgpPB8BKQ0ObQEnLOrfcZ1HaLDxtktZ5Co1l
         VAo87SOSAr8OgbjB4b7SB7sn16+76nk2gQbNgF65w9sRBGJMrVyOh8QbO6c/33ijdhzx
         ecRg==
X-Gm-Message-State: APuU4Z83gLgPGWbpLsTfaE+2pG2lQMIzCCBMdEAijTNF+Wgy47n8UHCf
	JkKUu+DCybe804LrAnS7i93VEh87altIhzOwa1wm7VNHj2SzjTkDf+5nxX7M6Sz4owPWGzKmnUI
	RNuZ+rWcZWR3SFni6InugXWzRfCX2BgJPKPfqDxJHcA==
X-Gm-Gg: AZFdTZcnJZGW9TI++tcQZHs0oLDvnZwe7SXzY6TN0iCPL+HfbEzqeNhdUK7Ytr+5idJ
	VL0cTfPh7o2MUJEGELhtSc01Y7nVPKI7+Aa1jahQhLzf1KHC/rib4cAEqAn/7qOoRmJdVyfNgMV
	zdexTHZ+rH06uj0Ya6ebaCNBhTgN799OuWwG2GvAYDkQsRdYkzqNCrk4JWSwJcxyu7wYkULiY96
	QnVXbutmtDAd8jmQ5sG85cvzuIMNeeTEzJOXetkotTLikWTbHwC2eh+hTL6WEA1NEPdIUpe9sGK
	n/aK7c2spZlspom4CQPj6teXayaw9Sbag5rZIzxzn+3SxaRFo9x+FvXt3rG+GWZBRGzF44RehSl
	Wfr4WbEkjOVMSGb38ruVhz+VvNHWaBhn2Hn55AutNMuvMAabqPzdlwVMaZ6gIdYNBKgzcr47U
X-Received: by 2002:aa7:d58b:0:b0:6aa:e44a:ae9e with SMTP id
 4fb4d7f45d1cf-6ba1f76f20bmr5784629a12.1.1795336362700; Sun, 22 Nov 2026
 00:32:42 -0800 (PST)
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
X-In-Reply-To: <20261118041238.14396-1-evostrov@amazon.com>
X-Gm-Features: Aa3M54pZfE2KW1luQ6sOAJOOiUgk0uydYZlf6J4BSyxM_Kpl9YLALdVdQ9VZbPk
X-Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@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