Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp30322pxb; Fri, 9 Apr 2021 17:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1FWnLR8LLCdwMdEDGAtFJCR5OPLHgLU8KSkqVgRXkFXrK35vcwe6CzN++5YU3DtkCUKl+ X-Received: by 2002:a17:902:988d:b029:e8:dd65:e2b5 with SMTP id s13-20020a170902988db02900e8dd65e2b5mr15473993plp.36.1618013581639; Fri, 09 Apr 2021 17:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618013581; cv=none; d=google.com; s=arc-20160816; b=LsBqNeuFv7xy5iLDRs27EyIfqsFAS2eaEWHcU2sO0jZJOVD1nGQSrWt7G0mAaN/t5o 5bePf0sLLXk2aUdCk4zGedW+OnQkcjSQ1caI7SOjySCw5gi+2KlmyZHB30wPrXi+1ab1 deu6Z/7/L8lVLGpppcPyup5bgVpBAV4Bthxw91clHgZshCBB47eoy37iugIQp9BXz5FZ I2eNECH+DbDjwe9Z41wVUOGarZ2xEyi06MYxmCNpbrcqIUAN9n3HA8Lvl3VynloC7PTY /6y3sNC89WJREYGYj1T940fFZnn2saYDVK60WVyR1wj9q9icbtFrvBMETgj+XAmFHhA7 YxaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fA8Z5aUUNElBHQmTl0rVRM8cCmxTfIGvqWZXobJvnWQ=; b=UJxkb0vIqNqhybQ/3WzGXAt6ty94rMRxKRZ4Yeb51BB1jh/eQRFS5BSsOIDer12y3Y SF3/0Xe8DWGiUggPYWmsztN7qQ7OCMzHRCxgHPQueV+S5aMB6FsvpM7Yc69hebVcFEs3 +or75G+H+rc8OliWb1mg35SgS/XoLj6lJ+vvMRldiC/KlEWjoKgrGV4qewNG1riae07b jlXul1wxepVTX07tnKiwy5ZldbL9l32xXeCmF24RULjLagArTjp/DsN6sTO7wCdX9ngx IpMsdHwQfANfS8uw+TerHCyeXDYNIJHVQJntxdir5f2rKl6T0sT4xif2l/87r5kdpKES LIcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtMvdE66; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si4643912pls.132.2021.04.09.17.12.49; Fri, 09 Apr 2021 17:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtMvdE66; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235268AbhDJAMG (ORCPT + 99 others); Fri, 9 Apr 2021 20:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235250AbhDJAMF (ORCPT ); Fri, 9 Apr 2021 20:12:05 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE3B4C061765 for ; Fri, 9 Apr 2021 17:11:51 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id k128so3709271wmk.4 for ; Fri, 09 Apr 2021 17:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fA8Z5aUUNElBHQmTl0rVRM8cCmxTfIGvqWZXobJvnWQ=; b=CtMvdE66Fm4dWjje6zKsz5kv72mdudXYT7IjWrKjKo1ElzVKNAsIxbE4ZKxunfPt2/ 8ie4/TsZVuhs4+43rmUlu+6M5YlxQlZEbyG1HgCeyhrzubvSiO1oRRhBFP93PkeXTXNQ aHTar9XiwUAq8rpKJmYWgPOZbUDWF22pGOe2uku4LffjB5xotLkIyhkxdoq9Mbkt9xnT e08O690WOfdvLNwLu8dTOPL9slPOPP4GCBz8q2w/IqHXGhvq71v3FiDWd63lPEpLH88S KqfyPamBXXC2iXxWp3jZZJH7Gg2oV2dtcUo55+5gXdpVcjJXcYI02ISu0xYho/CKXJaX CL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fA8Z5aUUNElBHQmTl0rVRM8cCmxTfIGvqWZXobJvnWQ=; b=q2LHkzmtMFMwEfTMoIpniAG7UKb881BRAvCoXVDLjIxROcS9GLxt8GlISDYVKsyRiA T5KO6vPYi5EP7mDO2RmNBQA/RjATLtJ50aMqsSx6cgFZWPZ+mdnzKBo/2/nUQZKOrpEi EhHCPU5Jajq43awh4UJ1U/vXlYk9Ifd4CX9/t/VJ5MHYtb2/NQMWBhHcwSn3E/cM+OPu FFll9XaLj7Weih7VzM+NXxAhDKkDJZCJ7LOzxtnhO4373BBw4H7vAd8DBbr7AOt5+sVZ 7ughKVt4bOXdB4xO2vVF+V4Z/QgkLghLJxj6qoD3KMMN9TIXSz7bRCv6+RLK3J8aOEZE 01EA== X-Gm-Message-State: AOAM533wbAL0IF4PQu8np7tJlsqi3VG6OOYJgbyPRcnOyphmSzzhgrUT NKjKA0msKJ/iiQJwSAfx6Rop7Q== X-Received: by 2002:a7b:c38d:: with SMTP id s13mr15914875wmj.147.1618013510497; Fri, 09 Apr 2021 17:11:50 -0700 (PDT) Received: from apalos.home (ppp-94-65-225-75.home.otenet.gr. [94.65.225.75]) by smtp.gmail.com with ESMTPSA id p10sm6815210wmi.0.2021.04.09.17.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 17:11:50 -0700 (PDT) Date: Sat, 10 Apr 2021 03:11:45 +0300 From: Ilias Apalodimas To: Matteo Croce Cc: netdev@vger.kernel.org, linux-mm@kvack.org, Ayush Sawal , Vinay Kumar Yadav , Rohit Maheshwari , "David S. Miller" , Jakub Kicinski , Thomas Petazzoni , Marcin Wojtas , Russell King , Mirko Lindner , Stephen Hemminger , Tariq Toukan , Jesper Dangaard Brouer , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Boris Pismenny , Arnd Bergmann , Andrew Morton , "Peter Zijlstra (Intel)" , Vlastimil Babka , Yu Zhao , Will Deacon , Michel Lespinasse , Fenghua Yu , Roman Gushchin , Hugh Dickins , Peter Xu , Jason Gunthorpe , Guoqing Jiang , Jonathan Lemon , Alexander Lobakin , Cong Wang , wenxu , Kevin Hao , Aleksandr Nogikh , Jakub Sitnicki , Marco Elver , Willem de Bruijn , Miaohe Lin , Yunsheng Lin , Guillaume Nault , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, bpf@vger.kernel.org, Matthew Wilcox , Eric Dumazet , David Ahern , Lorenzo Bianconi , Saeed Mahameed , Andrew Lunn , Paolo Abeni Subject: Re: [PATCH net-next v3 3/5] page_pool: Allow drivers to hint on SKB recycling Message-ID: References: <20210409223801.104657-1-mcroce@linux.microsoft.com> <20210409223801.104657-4-mcroce@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409223801.104657-4-mcroce@linux.microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matteo, [...] > +bool page_pool_return_skb_page(void *data); > + > struct page_pool *page_pool_create(const struct page_pool_params *params); > > #ifdef CONFIG_PAGE_POOL > @@ -243,4 +247,13 @@ static inline void page_pool_ring_unlock(struct page_pool *pool) > spin_unlock_bh(&pool->ring.producer_lock); > } > > +/* Store mem_info on struct page and use it while recycling skb frags */ > +static inline > +void page_pool_store_mem_info(struct page *page, struct xdp_mem_info *mem) > +{ > + u32 *xmi = (u32 *)mem; > + I just noticed this changed from the original patchset I was carrying. On the original, I had a union containing a u32 member to explicitly avoid this casting. Let's wait for comments on the rest of the series, but i'd like to change that back in a v4. Aplogies, I completely missed this on the previous postings ... Thanks /Ilias