From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=35.162.73.231 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796113774; b=AaiqRiY1KPPhqvwjroacRUD3GI311lNbmph9zTgvT1jtYa6J2ZkQWqaQm4UuVPotHvev dY/QbOpxUrZMj1nzGvoEowEK8ix1xZpYCHflmGNSxAYsLs/KQ+jqoewLJxPHJDXI92vVb srYqIH28Xm8AD3a20C8hpq2T79JkdLXoWpw0hQH1oCF3XXMGhkaIY4K0LMMqPHaZZH/zK z1LajxibvWnejHemuapUhW2Fdc2hF90WRX5u3hx/Rec4e/mgGM4KKduj0/Q2XPwl34Vw3 Tt86lmmd3ZShug0jF106T9S81qie3CmhFipAMOShouXb66uQcbcvpN6V6GYe0BmveWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796113774; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:Received:Received:X-Farcaster-Flow-ID:Received:Received: From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy; bh=/Gf0DN3nGeZhBTZj4CmARyn719KYmr1J2bCRr4IKVUI=; b=pK5CNvms4ZVKzeNlhsyuyb3r/JK3QixLORgiw6j3ggAWLqfubFmPmnZd3YlYS8ogHuXr CjYCUzZOuw1k/fr5l0YxwqgCvQxtHUho1nMWUe+v1TtsID2qR4QBzBut+xwjJFcgAMP3x z4RyI3MGyrZJltCqnBhtBd0cI4Xz6N161KfxbRuNt/bxbhcr7VPaehU0PnPPQPTiCdcEt cWRuTHoKHxXE2lDVa5JoQAgux45fghIt0irIIKZOQAeTmGgoeGep8yM/jRV1tgcKCOzjB T1cfjmmkaRn8u8kbypGxoGYyTCTKOS6Zaui1VCNze++1V8GMCYdcZN/cVSIyKHE8q1w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass header.d=amazon.com header.i=@amazon.com header.a=rsa-sha256 header.s=amazoncorp2 header.b=CnsKygo6; arc=none smtp.remote-ip=35.162.73.231 Received: from pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.162.73.231]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2563606A31A; Tue, 1 Dec 2026 08:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B2563606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=amazon.com header.i=@amazon.com header.a=rsa-sha256 header.s=amazoncorp2 header.b=CnsKygo6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1796113774; x=1827649774; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/Gf0DN3nGeZhBTZj4CmARyn719KYmr1J2bCRr4IKVUI=; b=CnsKygo6AzxeFZx4YL4VFmOf551CK9cqeaRH4g8o4v9SXqbE/J8/t8US tsJRKjhd4km2y4GKC5ZRC9mtfj68l+vbm9WwhRSrDLyitTDOZsrVcfOcM KR+1fSXiT8FJbhz7qvDO9iIXS8QyYMQ6M45lFsFw7Ax5uTxvcO/DpyVh9 AkxSKy9AjLbdtrwDsiYmJ/strg7cR3+DmqiBQVbljbYea+/m2TQx+IoXs 1La2oaHq+VPG6sB62AKFEmO1FAfJqov8JJlot5qDY08Q2GXiYNErsnvd2 yFA7HYKnz0taQb6hG2uo3O5ZpxH6XscVFpgkFrLR1exZO7Gho6q3pxz64 g==; X-CSE-ConnectionGUID: J1Y60ClYSNOKB3lRrvxmtw== X-CSE-MsgGUID: Ton2xCeATyeBfNjR6gIY2A== X-IronPort-AV: E=Sophos;i="6.27,244,1787011200"; d="scan'208";a="35408741" Received: from ip-10-5-12-219.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.12.219]) by internal-pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 08:29:30 +0000 Received: from EX19MTAUWB001.ant.amazon.com [205.251.233.104:18096] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.48.218:2525] with esmtp (Farcaster) id 95838d94-5259-45ab-8be2-e7f478501553; Tue, 1 Dec 2026 08:29:29 +0000 (UTC) X-Farcaster-Flow-ID: 95838d94-5259-45ab-8be2-e7f478501553 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWB001.ant.amazon.com (10.250.64.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.57; Tue, 1 Dec 2026 08:29:29 +0000 Received: from dev-dsk-evostrov-1a-14f749d5.eu-west-1.amazon.com (10.253.90.84) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.57; Tue, 1 Dec 2026 08:29:27 +0000 From: Evgeny Ostrovsky To: saeed bishara , Jakub Kicinski CC: , David Arinzon , "Shay Agroskin" , Arthur Kiyanovski , "Gal Pressman" , Michal Kubiak , "Paolo Abeni" , Eric Dumazet , "Kuniyuki Iwashima" , Shai Brandes , Subject: Re: [RFC] net: ena: use tx-push-buf-len while tx-push is off Date: Tue, 1 Dec 2026 08:28:46 +0000 Message-ID: <20261201082848.4513-1-evostrov@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: <20261118041238.14396-1-evostrov@amazon.com> <20261123181346.383390ae@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D031UWC003.ant.amazon.com (10.13.139.252) To EX19D001UWA001.ant.amazon.com (10.13.138.214) On Tue, 24 Nov 2026 11:08:19 +0200 saeed bishara wrote: > On Tue, Nov 24, 2026 at 4:13AM Jakub Kicinski wrote: > > On Sun, 22 Nov 2026 10:32:31 +0200 saeed bishara wrote: > > > 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. > I mean the new param will be served whenever the driver inlines/copies > the packet header into the ring of descriptors, regardless to where > the ring is located (host or device) Thanks both. We will add a new parameter instead of reusing tx-push-buf-len. We will keep tx-push-buf-len, since it is uAPI. The new param is the number of header bytes the driver copies into the TX descriptor ring. It works the same whether the ring is in device memory (tx-push on) or in host memory (pull mode, tx-push off). > > > > The driver can store both values in one tho, effectively forcing > > them to be in sync. The driver will store the old and new values in one field, so they stay 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. > yeah, max doesn't work well here as the driver inlines this fixed > number of bytes, even when the packet is shorter, the driver pads with > zeros. > I think the name should highlight the "inline" attribute is it's a key one. Agreed. We will add two attributes, the same way as the tx-push-buf-len and tx-push-buf-len-max pair: - tx-inline-header-len: settable. The number of header bytes the driver copies into the TX descriptor ring. - tx-inline-header-len-max: read-only. The largest value the driver supports. We plan to add both to the ethtool uAPI. Does that work for you? Thanks