Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1797887pxm; Thu, 24 Feb 2022 09:28:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcixjDC+iCUueWdCWNziQFVqRr0YRj6t3BojcD0Tw4OEY1necwBnl1RvOUAFKn8Pf+0xP6 X-Received: by 2002:a17:906:2ec6:b0:69f:286a:66ab with SMTP id s6-20020a1709062ec600b0069f286a66abmr3249245eji.684.1645723718644; Thu, 24 Feb 2022 09:28:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645723718; cv=none; d=google.com; s=arc-20160816; b=VgpZpd8Yv+qaD3m0DWQvcp4exUT2iwKCD0PhWSXPMVsFeQm2XDaZReGAB2kHg5+eWC RoKwig2CYxpZaf9hVTkeZFyNW1WMr3kXTGdupMx7wcuh4pV+hOEBnjCkkoHTAF5W6CG9 gWRrXNWk3/uCishRhYvbkpaRhdOo8i4xCYi0TTs6zku/YPiXAmQPhkAOVMlDjLqo1UVl azEN+Sa1VeJpfJZ3E82lNJsbB+URGGNiqCH/SI1CbRHiNP3DYPUm06ZAigEUVg8YkDK+ OEOb8hjvwOAUZD/ZT0s+slnJonWyDAxWlzV3CXYqxoCwMqLZlY8g41Kro/3EbI0Yytum DPvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=jkmUZIekJ1fYPf2/HgjluquRw8TsLiMzA6hAe+2h9H4=; b=Y/JZJ16bMnwDdJb4Dk67AG0z4g7JW7zf7w9nVOtV39hZvokIjb0xxo6GjcUoePH3bZ 8bAXYBWg4Y4bCHgaUc/Lx/+sKGZO/LP189Pfh4dH2MsOSI7jMDIyn+u3PM6rerF/afhv p9etBJI1eltrhu5S7KSpZZ5cZBjkFG6Txp0AURyMnmIVz0erUONI8t2MOHAsTWjGrlcv biCd+1j+fDutzM1s6C9Ppfo5UiT3/v0CGBXqHacUGrB2FsQky0sJ7lOty3q9l1T1JmE0 LDfRrnV0srI9636NC0mB/8fwONHdsjAKdH21ThxGNMZLqo6al3LlZl03vVKMHbC1Ux22 5QpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZvrwI6dA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a056402358d00b00412b2e999acsi195837edc.280.2022.02.24.09.28.14; Thu, 24 Feb 2022 09:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZvrwI6dA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbiBXRWk (ORCPT + 99 others); Thu, 24 Feb 2022 12:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiBXRWj (ORCPT ); Thu, 24 Feb 2022 12:22:39 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6DF1190B5B for ; Thu, 24 Feb 2022 09:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645723328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jkmUZIekJ1fYPf2/HgjluquRw8TsLiMzA6hAe+2h9H4=; b=ZvrwI6dAt+d5bidy5WnexHbZzRyB75TFhM4SDThPJnBjdPB5/FhUUpHwn43LegIHy3NI+D kKOiY1G7zsJLqVJXaWRdN++7M39Gujnqguwwb28amuru+gg4KpDcDGXOZwYaSZSjtEblvt pyVD+RqHoSMyQ7o2us3E2u0U56tZnl8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-656-aqTRcoTzMSeG7im-Vswqug-1; Thu, 24 Feb 2022 12:22:06 -0500 X-MC-Unique: aqTRcoTzMSeG7im-Vswqug-1 Received: by mail-wm1-f71.google.com with SMTP id p14-20020a05600c1d8e00b00381001316a8so108765wms.8 for ; Thu, 24 Feb 2022 09:22:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=jkmUZIekJ1fYPf2/HgjluquRw8TsLiMzA6hAe+2h9H4=; b=dOUGsTFRlCYW+59x4LRgAkIAIBTCsI+kjgIYvu5Nl5qyWfNgwE0AzO8ScSEebMeo2y qEnSV+l3As+zDER77wqcTfVFTtNqYjAxNpnw2tSGMyVJCc2k8866XqxonV3rLbKbqsJY BzD5kzVlnoA5KnatY6gB1x9tpXPWprwe3ikLEoUEhjqnOiL/jWejlrAiavgUST4Qrt86 w1aO/Ic2fT/RwkP3QWRttRXf6w2x1He7R7fIJogqCIN3KpkSQjn35iMYbWNtUsNesfKC zWJ/UVyeBK/CI1GOf8gh/CqSY7I1HyG0F8HgPT+f0lmpj/QI1xvjE9FdFFQMRLS3RVXM pJgA== X-Gm-Message-State: AOAM531m0Iz7s4lNrbbWX/PDUdisU4F2kN7KNDeNZpPQLHV/HhwMuTbO F2myI43uDtlaeZ96HaTgqB8weWd+8La9TpKxn+b+KzywEuA2q2r2/PlKQ8xq0z6al4CZeLhE7Lk /zEtZPicbzDxbzTrSSYL36gC7 X-Received: by 2002:a5d:47ae:0:b0:1e8:e479:fa8e with SMTP id 14-20020a5d47ae000000b001e8e479fa8emr3025551wrb.169.1645723325691; Thu, 24 Feb 2022 09:22:05 -0800 (PST) X-Received: by 2002:a5d:47ae:0:b0:1e8:e479:fa8e with SMTP id 14-20020a5d47ae000000b001e8e479fa8emr3025536wrb.169.1645723325472; Thu, 24 Feb 2022 09:22:05 -0800 (PST) Received: from gerbillo.redhat.com (146-241-108-216.dyn.eolo.it. [146.241.108.216]) by smtp.gmail.com with ESMTPSA id y12sm4174551wrt.72.2022.02.24.09.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 09:22:05 -0800 (PST) Message-ID: <1de9e991f6c109d5986c857bc176e03d5e167944.camel@redhat.com> Subject: Re: [PATCH] tun: support NAPI to accelerate packet processing From: Paolo Abeni To: Harold Huang , netdev@vger.kernel.org Cc: jasowang@redhat.com, "David S. Miller" , Jakub Kicinski , open list Date: Thu, 24 Feb 2022 18:22:04 +0100 In-Reply-To: <20220224103852.311369-1-baymaxhuang@gmail.com> References: <20220224103852.311369-1-baymaxhuang@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, 2022-02-24 at 18:38 +0800, Harold Huang wrote: > In tun, NAPI is supported and we can also use NAPI in the path of > batched XDP buffs to accelerate packet processing. What is more, after > we use NPAI, GRO is also supported. The iperf shows that the throughput Very minor nit: typo above NPAI -> NAPI > could be improved from 4.5Gbsp to 9.2Gbps per stream. > > Reported-at: https://lore.kernel.org/netdev/CAHJXk3Y9_Fh04sakMMbcAkef7kOTEc-kf84Ne3DtWD7EAp13cg@mail.gmail.com/T/#t > Signed-off-by: Harold Huang Additionally, please specify explicitly the target tree into the patch subject. Cheers, Paolo