Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp131062pxb; Mon, 31 Jan 2022 17:17:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVvjLC111gxa37O8jL2LVy8o9hoFtXxNO+cFIskJWpJwXzvG4UfzZ0AeAkZzPVCFfho4d8 X-Received: by 2002:a17:907:1c0b:: with SMTP id nc11mr18849722ejc.665.1643678229338; Mon, 31 Jan 2022 17:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643678229; cv=none; d=google.com; s=arc-20160816; b=IodZS+vLgC/hoZiZGGMbkOPt13Fu1NSXRxrUGoWBkWklvffbiPxif/iGMjVFsODAY9 mGgrwg2WK3Uq26pBH+dxQj7CKsp+i0kemlTnqQYWWpJULymrYT3QufTA+3AKhTza/gTp qb5uJuPYJqwRPccZi4brk3YBqcGJ5O8vM7QQKCi5fAQPYjDC+ZKrfWeiP02MkR4XJujk 1NSPxrdiMwxRzwRb9iqBw70kUyN2ELSZuAGJddSR8TFniw7m2vTHjNldthj2FNYsZj28 PJ21qCr5G3Ef5JLK4ABi0hlWAiTZjxJ2z7OWtgniMu2mrqWbNZOM87V9k3yvGT4N/Xvn T1vg== 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=rPu2HBvzZbtvcpRAuhqaksiaobPFCGfVbtgZjOV2Ip8=; b=SpcZNezZon7A0bt0Zuf8cIdrEhVYDZlr+l36y6HF6utk1s0fj7r5t7rijnwcs9f8NG jWCVOcx0ZFmk8t1zxrHt9GG79F2gxuMDbec5ouhDMhFMy3RSCJpMjxp7E5oOJ32F3eiL LvJ/jZKYan9/lIaPIbCZvJJqxgxQpQ1VWqPWae5Iv7XGP8M03GUW3MYkO2dQpTOquumA aBtxHiORgvHgs9Ff6X1Ve39seeTjl82/pBg1nyf8gnFwdbYP7QMvQOh+FS/lb7AXr7AX r2CAfyH6K5GVeHHP4TgerE7x5VDYPRHeeIYzHkn9VwgQ4mNgPGZMFOutmdYU8jEtG7mV 6hQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GwqJGYZz; 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 jg5si10361900ejc.569.2022.01.31.17.16.44; Mon, 31 Jan 2022 17:17:09 -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=GwqJGYZz; 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 S232097AbiA2Iza (ORCPT + 99 others); Sat, 29 Jan 2022 03:55:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiA2Iz2 (ORCPT ); Sat, 29 Jan 2022 03:55:28 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92368C061714 for ; Sat, 29 Jan 2022 00:55:28 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id v3so7411733pgc.1 for ; Sat, 29 Jan 2022 00:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rPu2HBvzZbtvcpRAuhqaksiaobPFCGfVbtgZjOV2Ip8=; b=GwqJGYZzY2Aeit3fAmxcFpmZprtOezVdhPoPc+HMwlb8qxgyftVCWWtVhtRk8BV2GP cJPrFtL8EBIBoSMZs+9VCqPrs39NWRWwD3RA1EwmY6EzBts6dP9rfgakyZqGllDlwml5 ZS1YhZR7fQzp3iu1aN8If8XTIIZmFhw6cioWAWzPMrE98w0VDAq5MtXhPkZf6KCIEPhh aMrcfR19T4fG2LaO2vzmcYlOzg8cP1k1gjBUDRp5AJwKNbBleH6TuP4/F1icMAHdly4W NkO4/oDvIwnlv55m5WNPGOyT3REgfgJMi6COySUwWRNmzxMDyiOJPINrL+insmKtpq/t eBDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rPu2HBvzZbtvcpRAuhqaksiaobPFCGfVbtgZjOV2Ip8=; b=RUqrVolwYprhiL+waol844Z4x6j4GSbQtU21XIN7EEJZeIT8Gr2pwpgb+I/K+86Dna wAxLJuBonLAut1sIvDxDtlUB1/kRALAKWPAThG9G8dnQ8rqIQ/VLgstlsm4C9Ivv+WFJ C02o4Lc3N800GdlWgAzR7pgQRdAa87ZL2yrFrI50rOWMrQGciOKUxrilcfY1otq7pSsa drG4hvikJRcWGARkH/fPjVG1rvHoTFOZgW6O9z796XQWGMXZGCkb7GqEIZ69m15HyS5a xSnvwE2hwmKbmDH7PkS7xHdXLTvt7V02+SXSh2KnZDCZBrM0uts8bDIKcuDIV/e0NvaX pfJQ== X-Gm-Message-State: AOAM532drwttSjkI5uG3O2pRIz1I9+ezc+uSbu+0mSnuXcgoWN4+mBvP cwkwzjrFw9fsRuV50iJLnuE= X-Received: by 2002:a63:ff43:: with SMTP id s3mr9544703pgk.623.1643446528129; Sat, 29 Jan 2022 00:55:28 -0800 (PST) Received: from ip-172-31-19-208.ap-northeast-1.compute.internal (ec2-18-181-137-102.ap-northeast-1.compute.amazonaws.com. [18.181.137.102]) by smtp.gmail.com with ESMTPSA id 6sm3048349pgx.36.2022.01.29.00.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 00:55:27 -0800 (PST) Date: Sat, 29 Jan 2022 08:55:22 +0000 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Jakub Kicinski Cc: jwiedmann.dev@gmail.com, Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , "David S . Miller" , Daniel Borkmann , Sameeh Jubran , Wei Yongjun , Lorenzo Bianconi , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: ena: Do not waste napi skb cache Message-ID: References: <20220123115623.94843-1-42.hyeyoo@gmail.com> <20220126075220.3d60981f@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220126075220.3d60981f@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 07:52:20AM -0800, Jakub Kicinski wrote: > On Wed, 26 Jan 2022 13:16:41 +0000 Hyeonggon Yoo wrote: > > By profiling, discovered that ena device driver allocates skb by > > build_skb() and frees by napi_skb_cache_put(). Because the driver > > does not use napi skb cache in allocation path, napi skb cache is > > periodically filled and flushed. This is waste of napi skb cache. > > > > As ena_alloc_skb() is called only in napi, Use napi_build_skb() > > and napi_alloc_skb() when allocating skb. > > > > This patch was tested on aws a1.metal instance. > > > > [ jwiedmann.dev@gmail.com: Use napi_alloc_skb() instead of > > netdev_alloc_skb_ip_align() to keep things consistent. ] > > > > Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > It seems you missed CCing netdev@, you'll need to repost. > You can keep the ack from Shay. Oh my mistake. I did it. Thanks! Hyeonggon