Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp217526lqb; Tue, 4 Jun 2024 09:16:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvPbleCyauJQI1VmBOKnp/Z1MINHQnzroS5H3SZfUuFH0/NS8ImUvsKvjsYvyyw1eIu/bKvA06Mp6Qwfbm7W9zojBJ9Rd8wJ6b9Uf9lQ== X-Google-Smtp-Source: AGHT+IGtHSwV/uq4RMw+yCWe/VRMRc8QCFkPK8GFDISW3oquaJmL6dfC18JdXit5sp0o0lpEi3ga X-Received: by 2002:a05:620a:2804:b0:795:13eb:9db6 with SMTP id af79cd13be357-79513eb9ec7mr353477085a.41.1717517796692; Tue, 04 Jun 2024 09:16:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717517796; cv=pass; d=google.com; s=arc-20160816; b=ULFxAq/4YjeSO6VsKiWstKbJwNVORYCLIB75yhDEm/yZjn9DlT+jtPVu4xGW4Rh+EZ HKGkyvDUQ6kU+sEKOqSJtXgDlbPaikvAuIiFWVsVppCQmUzdrDY2MviHuFnpDLUmnlOH kixfA2DMZ+HPLGpp/vLSAsTzaJqILJl5p8ppbpJB15Rvjnef2OVNOm8NGBHUZTaOr/9O HVuxRAyA5GHJg0K+XNuaYEobA3VhhC29lT91yemgSdoiO40QqTqJwHgsi7g2NnZKpbX5 ITma0hGV0+yrA5upNpBDSsBpew6DjFfRKG9YBh7iXlr4jjo7kIf+XieyRk/CldHCOSyV NQzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=jNFSpjumgDvH002OkxEuVnpb4K54WJd0EEL7ZDsoVmA=; fh=tlgvd7YKQgAc3JEoQQrawPRAV693fa+t/d3tGt6yZ7s=; b=LVQb4YI1TSHzxa2zTcC4HvT0CREOSMycrKcCf3m13vaf3f4LyA5KiBz44/YC9lXgIj iaTYIKLI0ahDbDMnKbuS4BetjGTk02SXq52Ikg0yft0ZRxvVjw8IEBIRdEVGySi2lUZ8 v5sugn7KHDFxbF6LFBaovmN8/zP+22d9BSSULt1OQMRwPNB/soqxmYNX0waoJTtHiqO/ pWYiv1huHsG759Mt8lLHSP9+auEkV19+pSUhYtswxGzYihXP22b4FB4bGW9G1ib8zblg GESYvCHCwgVXvkZKdddGZ8Lx+6qTqDJFQJ3ag2skKzJzkX0rvyWxItXRhSUuNh1YKRFu ckKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201050-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f318a61dsi1136868885a.494.2024.06.04.09.16.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201050-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 586BE1C24B49 for ; Tue, 4 Jun 2024 16:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFCD1148853; Tue, 4 Jun 2024 16:16:11 +0000 (UTC) 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 F246677A1E; Tue, 4 Jun 2024 16:16:10 +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=1717517771; cv=none; b=rPiW8RhofNu2QWwaT/Jj3Qq63DZpBwE+BJfE/FPe8H0HVo4MvDs9xBSKAmiC99AyaRTcdm3HdkHZ1sbMn3suvdUbcvvBq9Est7kf5MQ8YDjsJrfx3Jrp4O2YXNt70UZXBEn9AkgknkXtKFeX/6fE8TKKR+lsqMJ7kMnnKxiC2b4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517771; c=relaxed/simple; bh=invKrC589zcraP5ug/OrIxlSdk1/hQC0D+eJC5VrpC4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VoXHt25y652mWabH5Z8RQAh4gjqdZ+EuNfdReAazOw5N4BANeB7BfILFsix3njv0qqfnjGhodcBiM9WoPlTRgEpvn1xprZjVFuWeQ+W496n1xAvjv2QSH//IjrqTqbsFbKxCg7lm07bxCu8AJdP1Cn2zf7C4lAx+/DcP32LJElk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DB26C2BBFC; Tue, 4 Jun 2024 16:15:53 +0000 (UTC) Date: Tue, 4 Jun 2024 12:15:51 -0400 From: Steven Rostedt To: Paolo Abeni Cc: Mina Almasry , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?UTF-8?B?S8O2bmln?= , Pavel Begunkov , David Wei , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi , Willem de Bruijn , Kaiyuan Zhang Subject: Re: [PATCH net-next v10 05/14] netdev: netdevice devmem allocator Message-ID: <20240604121551.07192993@gandalf.local.home> In-Reply-To: References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-6-almasrymina@google.com> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@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 Tue, 04 Jun 2024 12:13:15 +0200 Paolo Abeni wrote: > On Thu, 2024-05-30 at 20:16 +0000, Mina Almasry wrote: > > diff --git a/net/core/devmem.c b/net/core/devmem.c > > index d82f92d7cf9ce..d5fac8edf621d 100644 > > --- a/net/core/devmem.c > > +++ b/net/core/devmem.c > > @@ -32,6 +32,14 @@ static void net_devmem_dmabuf_free_chunk_owner(struct gen_pool *genpool, > > kfree(owner); > > } > > > > +static inline dma_addr_t net_devmem_get_dma_addr(const struct net_iov *niov) > > Minor nit: please no 'inline' keyword in c files. I'm curious. Is this a networking rule? I use 'inline' in my C code all the time. -- Steve