Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4503323pxb; Tue, 25 Jan 2022 11:47:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH30qz8D8jJgCtuBPgLfqn0Da/wXE+3ybt9oDaMZJMq5yx5rL+hurnoMZ+R66ZJ4FjFDeM X-Received: by 2002:a50:c388:: with SMTP id h8mr21454318edf.218.1643140051218; Tue, 25 Jan 2022 11:47:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643140051; cv=none; d=google.com; s=arc-20160816; b=FkN2sz4Csis2ZqhQ7XelrPILo5Noo+bFeZR3SK5Jo/F0mPUTGb0OghUBkaaTjIeuNX Z42g7ceoKQX2/vMl3ymDzRP8oFwvlpBI9BlSJCfmh6/KHUCQzNghVsXfEByZlZRKN/HP g8+4dMlYYzuZBCFFEwZXKYheXprxBdyVk9a8c7fKieiEg3MaNipsKC6hy2Ha22recere sYFcYmvLeci7isYQFXPOBSBPw1kyjzjJ9WsOhPhK9Psv4vFfmhyO7t91X/6kYyZnYDec Xa249tbNxZibpt30Imx+OsMtVAYzKG5EHLx5JKqvoWRmjxgXOZVPFXJsyDceWkXnUN9m zNxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZLnOYuyorYTwARzIwCYtX0Y+DVUCcs21qO0uQgIbKpg=; b=0uZj89aX+ZDiop/7ViihLXfaxnfzrObxhZEKMauvu1jZfkA2ljf/CoOgSkN+OEc1ig /h4ulyCAhL+3JCnOrFV9A8d+lTyN3mLoPZM1CA9gE4xUk6xocy3MCXVJ4G7USWCaVQBH XTcz0A0wZPgNy5tf2lI4vdmAjCqvdTHSMHEQhvwBm2TZo0jZie5rRS7km5ArNsH4gdTT YP482D3A0rpzs7f4dS4bvkf+lfrajyC2j7qc2eTS3Gxdk9vi6GBZwbltUi/j1uj4oPn4 XmBDjSnceXeigJnZ07b6AloawUqG3aKq5VAqZImHyhGRR9xzj295xsPbsfbAwnKcywhC 5REw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nKtJRYwH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd1si5710370ejc.860.2022.01.25.11.47.03; Tue, 25 Jan 2022 11:47:31 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=nKtJRYwH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386626AbiAYNxE (ORCPT + 99 others); Tue, 25 Jan 2022 08:53:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385439AbiAYNug (ORCPT ); Tue, 25 Jan 2022 08:50:36 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1585C06173D; Tue, 25 Jan 2022 05:50:34 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id e17so3726114ljk.5; Tue, 25 Jan 2022 05:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=ZLnOYuyorYTwARzIwCYtX0Y+DVUCcs21qO0uQgIbKpg=; b=nKtJRYwHPJ3u+LD6RcTpyIaViq8Bz0Tj9KkubsjRTAjjJJlJ16FaKZJm2P6BZE7+8G oZ+peKp2Fm3zhcbUcBQYp3oOshMHyjjIB0S4FyWk973NDHiwAlXXrkV6j1skbEb3fCAV 154+v4NL7waMORsJFXw/adSqEoj8SA3pVl+IPXT7BCvQCN3x3xbpp6ZBzl1KClVu16IR F1zTLLd+7RRxTOcGpViGuasvehc+o2o1/WdrfsruUSad5maxyVb9Caq1nrJzA7xkou1K nzJ606HJUFbBkAZgy7xbSnlOuA0kvpPC/xNaGJybJ9V1CAywSVN5xlRhFVHen2PzJIUU XVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ZLnOYuyorYTwARzIwCYtX0Y+DVUCcs21qO0uQgIbKpg=; b=phQUas4a3i2zVnyhW3h5Et8m2Oejiw5BUO+K9EHVTB/SzrWVgD4iBK+EGUn5Cgx0H8 z0ei/r38xpcid3dCcLDG1UqdJ/7sSkgS5BkkNWD97lpEu2p6UpIAUoPpjGzQMlL18LRm 7xgiH4zTPvj6Y7O6CuswVGWluQxgUu/V4oL7V2NT0X3DnoOlmWYn+5EpYYEHQihYFcxw dET7xVkCxuqtPnhb0y2dITxEDa3iLPYJXdVemIqUt5wHBJ1fAX9hYgKw5vCBoN0M8Eoa ZyKVSRtz/KdMACETynM5qHsjAggYd2ATzzMeU6WUhvHoDRv/GowR6r1iB1sek8mePB2H K/gA== X-Gm-Message-State: AOAM533Q0/1czQjiw8UCDB8PVLWFOsMM8hx5NjyRu6gIZN8ObG2tk8HR jn3L6dEcG1qZosCNOxJBWEo= X-Received: by 2002:a2e:9e02:: with SMTP id e2mr14661066ljk.502.1643118633404; Tue, 25 Jan 2022 05:50:33 -0800 (PST) Received: from [192.168.8.103] (m91-129-103-86.cust.tele2.ee. [91.129.103.86]) by smtp.gmail.com with ESMTPSA id h23sm1206582ljk.4.2022.01.25.05.50.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 05:50:32 -0800 (PST) Message-ID: Date: Tue, 25 Jan 2022 15:50:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH] net: ena: Do not waste napi skb cache Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Shay Agroskin Cc: netdev@vger.kernel.org, Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , "David S . Miller" , Jakub Kicinski , Daniel Borkmann , Wei Yongjun , Lorenzo Bianconi , linux-kernel@vger.kernel.org References: <20220123115623.94843-1-42.hyeyoo@gmail.com> <5cca8bdd-bed0-f26a-6c96-d18947d3a50b@gmail.com> From: Julian Wiedmann In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.01.22 11:34, Hyeonggon Yoo wrote: > On Mon, Jan 24, 2022 at 10:50:05PM +0200, Shay Agroskin wrote: >> [...] >> >> I agree that the netdev_alloc_skb_ip_align() can become napi_alloc_skb(). >> Hyeonggon Yoo, can you please apply this change as well to this patch? >> > > Okay. I'll update and test it again. > > BTW, It seems netdev_alloc_skb_ip_align() is used to make some fields > be aligned. It's okay to just ignore this? > napi_alloc_skb() adds NET_IP_ALIGN internally, so you end up with the same alignment as before. > Thanks, > Hyeonggon. > >> Thanks, >> Shay >> >> >>>>> else >>>>> - skb = build_skb(first_frag, ENA_PAGE_SIZE); >>>>> + skb = napi_build_skb(first_frag, ENA_PAGE_SIZE); >>>>> if (unlikely(!skb)) { >>>>> ena_increase_stat(&rx_ring->rx_stats.skb_alloc_fail, 1, >>>>