Article View: linux.kernel.netdev
Article #15898Re: [PATCH net-next v4 3/5] net: devmem: use niov_shift in net_devmem_get_niov_at()
From: Breno Leitao
Date: Fri, 13 Nov 2026 12:05
Date: Fri, 13 Nov 2026 12:05
12 lines
9273 bytes
9273 bytes
On Wed, Nov 11, 2026 at 02:47:38PM -0800, Stanislav Fomichev wrote: > TX bindings use PAGE_SIZE net_iovs, and the TX lookup hard-codes it. > Derive the index and offset from binding->niov_shift instead, so TX > bindings can use larger net_iovs. No functional change, TX bindings are > still created with PAGE_SHIFT. > > Signed-off-by: Stanislav Fomichev <sdf@fomichev.me> > Reviewed-by: Mina Almasry <almasrymina@google.com> > Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Breno Leitao <leitao@debian.org>
Technical Details
Message-ID:
<avb9CdqQ00h-Dwrr@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362604-linux-kernel-netdev=dewy.ruReferences:
<20261111224740.2744522-1-sdf@fomichev.me> <20261111224740.2744522-4-sdf@fomichev.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362604-linux-kernel-netdev=dewy.ru From: leitao@debian.org (Breno Leitao) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 3/5] net: devmem: use niov_shift in net_devmem_get_niov_at() Date: Fri, 13 Nov 2026 04:05:44 -0800 Organization: Usenet Network Message-ID: <avb9CdqQ00h-Dwrr@gmail.com> References: <20261111224740.2744522-1-sdf@fomichev.me> <20261111224740.2744522-4-sdf@fomichev.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1410089"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:z2H59tO5PYGr8ZOO7Ha0yJEeR2o= sha256:EkDR980E4EgkDeBT+OuHGWuwGUxqX1u2M5KeJCRWBPk= sha1:rcWfXiQAtlyFWZBKM+UkWHSJeNg= sha256:SCvMORTnEPtnmEIngw1+2Hs4H5AyFStfYkQsSemDZE0= Content-Disposition: inline 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 D0467114602; Fri, 13 Nov 2026 21:52:12 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.052 X-Spam-Status: No, score=-3.052 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, 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=debian.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 oAhg01CfVrDM; Fri, 13 Nov 2026 21:52:07 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362604-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 1852E114601; Fri, 13 Nov 2026 21:51:58 +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 C427B4BFFA; Fri, 13 Nov 2026 12:08:17 +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=1794571567; b=BwOLGQcctBRxIJEswI+uyMzQ9aOXr4kO1qt6LiAvLgOAjPm8JfcewJbHMQ8YfPHfzs7H d4YqW5EprgZfC+tY/03l5U68nrdst9N4stZg/p1FpLk/RV7yI/sCH2kkuzsSyENArJ2Sc WMmHmuJnXHfAxkQk1dmcFJgcH9EEURBlWB8R6tUcIMKUaIb1QR9dEq7U3XyJRR1eZPkQs XcD6vPxjnPu2kobQDH4Vekh+2hWNGLuOrR35ClPEJt+21WLG5fmycRaOQRVuQPENCcXSJ zogfBU8OsRsAx/am6n16jQdod6KsTsNBJOMDbG2pp4Lun7IQ0yVkdd31kagWVthyBtQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794571567; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-Debian-User; bh=EfXphdCKIXv9Uwxy9CfujdrOz6OEGjuhAJtXv6fdipE=; b=S465fY/6WwXpBJhg8rB/NKzoSL4teRfkY9LyJaJLUi0t2rKpwGZcsJdEEgYvXWVKoHzM 43TYQenseCtlPzxVfJNtYXb8/4KDMxGX+S4lryQHC8LwjczNKnOY5GTxckwV5V+5aDny4 ahAG7eduBlR9k+ZZFav++E0NEFp443iTFk678+dFC18AR7odKSduZgR+A+yk/okVoe5a/ g2+NUCGStAs8vzvxI+mKivVH4JgWZUhbvlTYEpDEt6LezS4adJkK1MWdNqADgHkl4K9ng wUhvZ1IpE5itsWYDhxFICEHo2Tpp+PD8/elGd2+FF4KNY9J4bdHyarqZs7uttqo8h9A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=eC89Kk81; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; 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 AAB89606F91D; Fri, 13 Nov 2026 12:06:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=eC89Kk81 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794571561; b=utLn4hWRf5ZuN56iPpguWmsaODHDso3XnxFz5i8UbC1kiNCkle1uVDNqQ4d+fCDAjZOZ fT0satzN9c9cc8YQXucOC2LUEO7TtzLdEqhjipcEWGnIk4T2MBWBXEPaGS3xk4ozq6zmJ aEg1sHqRmrLx1c22/BNugmmRdKL/ShDT4uWjJtwQ+te1rHUKGC+bMEc1YJasjMs/iyU0Q WIf/Ol/DI9PZnILdnE0gKzQ4GJEuD1iSY5d71aleKRzT9/ou5efKI/YhdU8pzudyUt7e5 HqDBUB4q/62mV8NwuCMmZXw9FyA9p9qNBMjo5Dtv5lgIGmbUg7pfaLaa211TsNt0kfw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794571561; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-Debian-User; bh=EfXphdCKIXv9Uwxy9CfujdrOz6OEGjuhAJtXv6fdipE=; b=UmOj2r8nKPAoJ8X1AxThwTdB9/1DCcpopXpLEoV6FLXIiD2P659adyy+x4K34Ybg38ZK rqJ4Zc5FfNG/mEnKcqOjRjwjHqdhpWAVxTwBz5PcUE2srlRs7z3gdzEYctNClHEzUJUPM KbpTPfpg97ODY5YMAtayHV4VnxZpa3ssWSXN3+VaQv7j1ZYuXFXFcLZ60ivCtpZ22GqUh EiJ7qNZoAizpWf80ul+wEpxLQHmbLkAf2f0hWeuln/NXd3hVIg2EPsBhg08asLgFJzTP0 yU+YAvwbz/8rJuNfZVuDqcfh0IlvYsOHjpIG5tR9E9Y01VidaWYhvOT1zoK++y93+hA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=eC89Kk81; arc=none smtp.remote-ip=82.195.75.108 X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 410B8606AEB2; Fri, 13 Nov 2026 12:06:01 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 410B8606AEB2 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EfXphdCKIXv9Uwxy9CfujdrOz6OEGjuhAJtXv6fdipE=; b=eC89Kk81kDpWNqbfCrZjZHvmhG l5h5zFhDa9igeCZM89483crp2z2ytus1UmspG1vq9dQw7kc5ZwOHaah01eKtQm38B+BQTmxhHI7pq 2HF9gAy9JhLz42JZVZ4TS0ttcys/UYYH2umbCKMiUXhB2POzjdQh8/mF2/zMJUQWnq01LpERv4hUc 9rJ72h5wGGi2GdCDGq3wFaesLLBSRkcR+00GQMgVbA/hDr5HFw3iGvuNGKhoH+ekWe4TDp4lxveaX qR3FUzmWP3Twg86qBFOGLLYUQZ6BglZleurVWysKezKzyUAejnm4MzVrEms3Sei5JtmAm+kw9TyP6 tnWPjzGQ==; X-Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <leitao@debian.org>) id 1xRq2Q-00EjoI-2X; Fri, 13 Nov 2026 12:05:51 +0000 X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, michael.chan@broadcom.com, pavan.chebbi@broadcom.com, andrew+netdev@lunn.ch, edumazet@kernel.org, horms@kernel.org, shuah@kernel.org, almasrymina@google.com, sdf@fomichev.me, dtatulea@nvidia.com, asml.silence@gmail.com, bobbyeshleman@meta.com, daniel@iogearbox.net, razor@blackwall.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org 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: <20261111224740.2744522-4-sdf@fomichev.me> X-Debian-User: leitao