Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5024902rwl; Mon, 10 Apr 2023 22:27:24 -0700 (PDT) X-Google-Smtp-Source: AKy350YW+a/R+llzB6TtAEJj7uk6QDOhv/f5QjgDd/sbYSpO19j5UekfB9f7YQkd/xwu1x3jiu0L X-Received: by 2002:a17:90b:4a4c:b0:234:b4a7:2abd with SMTP id lb12-20020a17090b4a4c00b00234b4a72abdmr17371740pjb.12.1681190844014; Mon, 10 Apr 2023 22:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681190843; cv=none; d=google.com; s=arc-20160816; b=J/ntJLTFaegmdRL7Ya/Gzxg6LKnZ/u4/4yj7KZJjxpYD/2TzDgVHmgvurABfOEiuEn E86F9P//OGvyM+sEfu16dyEkmocWxFvhqKcTFuXMbXO34Qv2H6r5jYt/IwV+rC4HRRUK UPUkgFm5s5dsHDlzTEZ9N2/f5oU7dC4pr/0Us43rRrGIWTjF+QezkzRBDOlAViiEBUPD 8pYolehnxLIKi0rLCUgROi+Ep0em45BZEvxolYwStzRPJ/xwA99T+veudrBzbME4XtWJ W9cXsebYZrJW4BYezjzSU+qO8wo9RdOEEnD4d7ZIzH87WdfaV0vYv6ncavy9N4OmEdE9 SLfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hU+qgshibA1QfkJQle3bVOxSYrB+boxQWnfu4An3Eok=; b=atHKtdeRygSz8ZumfqDueiykknU9sAFQN6GXCL6E9QAcI1MYJm+EwNHoSNhtmIGNra 35d7xQdXUigDIEFw/35jchxV6zIe8EAuxKp7oQC3Yv/BLD5UWUE84RcZS8JbkA0z/AP2 RzfwEpe2ObI4wEaTUpHBsgoZFH8dnXB8cgURZzGaVaMUxbypbrcDid0n/T9lBCiRdl8/ J76/rd0ej6U9u7BBAzPWVgPaRjwv5sIYuX+Ryw45e8mRH77D7g48BJSxbMnt3CPTh3yQ DfHz/eFDEgty7Aemq51wNpMr34t2lbxD/MPk1YWt9jiy1RbVDxRvnkRapXUE2EpnCoEZ hf9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IPKi3560; 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 f16-20020a63f110000000b00519b9bfd43dsi4846134pgi.480.2023.04.10.22.27.12; Mon, 10 Apr 2023 22:27:23 -0700 (PDT) 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=IPKi3560; 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 S229836AbjDKFQw (ORCPT + 99 others); Tue, 11 Apr 2023 01:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjDKFQv (ORCPT ); Tue, 11 Apr 2023 01:16:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE3C1FC1 for ; Mon, 10 Apr 2023 22:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681190163; 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=hU+qgshibA1QfkJQle3bVOxSYrB+boxQWnfu4An3Eok=; b=IPKi3560QFLoaVXLDCcHLoYQ+CkuN2q3CjT3JKjU8/MOFXtkI/oaExZtR2Aw0Mu3R0v+hs ImT5DyzhWvHpTOZGXK5s/RF4SvKIDAMsJxgxEEpYY8zDI2vmCetSwtL9VEiU/PCLC4Johy sdPiVYn2sxJkHbMye6Q6jqwAE8cKp0M= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-41-tv-6jul1MD2Wgg9afm_wtg-1; Tue, 11 Apr 2023 01:16:01 -0400 X-MC-Unique: tv-6jul1MD2Wgg9afm_wtg-1 Received: by mail-ed1-f72.google.com with SMTP id t27-20020a50ab5b000000b0050047ecf4bfso4107219edc.19 for ; Mon, 10 Apr 2023 22:16:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681190161; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hU+qgshibA1QfkJQle3bVOxSYrB+boxQWnfu4An3Eok=; b=fXhkusAUZlqjF9007T42HhbDABNogbrtACUWeEcvMZNOd6d4wWfdUISL8+2hZQ1NpN exrHst86DrKYLUS4LcymMk+UQ2BPSkSBA6/bl/GKsnvocUZ4YpOvxdDub97pGbhnXd4M v9nBAEVyKpo0P81euZEi+LowMS2R48lukXwflaSkXTHHgzl4bLg3LsJcSYhXvl+RYGc7 sNMOPa0xfqLZ2aqgkhWXYez14047F9TRCloVKgnUJarjeefK7Zi8kTCW0hQKRjrHlPzj fBHSqrS/U7zcyGjNQpjlGzi7od2NwGBrQ+k26NBnzT6T0WneHI5X+w1VSYy1tNe+sG1M 7MAw== X-Gm-Message-State: AAQBX9d9z3jwMgs+IfZ15toS+CwNHsfR2ki13lBl5KTY2YubyBPoiLwR vCQiO8l/iikat1PlQEB9jFm/gboRaAFJ6taoLLZFKD4cLtY4TklUR7636T/Oj+BLC8qAFhkv+58 b9zg9Eb72gy1fs94qoHJ1ui4Wvz6MGZvrh5anajny X-Received: by 2002:a17:906:f744:b0:931:7350:a7b6 with SMTP id jp4-20020a170906f74400b009317350a7b6mr608712ejb.10.1681190160819; Mon, 10 Apr 2023 22:16:00 -0700 (PDT) X-Received: by 2002:a17:906:f744:b0:931:7350:a7b6 with SMTP id jp4-20020a170906f74400b009317350a7b6mr608708ejb.10.1681190160585; Mon, 10 Apr 2023 22:16:00 -0700 (PDT) MIME-Version: 1.0 References: <27297.1681189100@famine> In-Reply-To: <27297.1681189100@famine> From: Liang Li Date: Tue, 11 Apr 2023 13:15:49 +0800 Message-ID: Subject: Re: [Question] About bonding offload To: Jay Vosburgh Cc: vfalico@gmail.com, andy@greyhouse.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, Paolo Abeni , ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Hangbin Liu , "Toppins, Jonathan" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Thanks everyone! Glad to know this. On Tue, Apr 11, 2023 at 12:58=E2=80=AFPM Jay Vosburgh wrote: > > Liang Li wrote: > > >Hi Everyone, > > > >I'm a redhat network-qe and am testing bonding offload. e.g. gso,tso,gro= ,lro. > >I got two questions during my testing. > > > >1. The tcp performance has no difference when bonding GRO is on versus o= ff. > >When testing with bonding, I always get ~890 Mbits/sec bandwidth no > >matter whether GRO is on. > >When testing with a physical NIC instead of bonding on the same > >machine, with GRO off, I get 464 Mbits/sec bandwidth, with GRO on, I > >get 897 Mbits/sec bandwidth. > >So looks like the GRO can't be turned off on bonding? > > Well, it's probably more correct to say that GRO is > unimplemented for "stacked on top" interfaces like bonding (or bridge, > vlan, team, etc). GRO operates early in the receive processing, when > the device driver is receiving packets, typically by calling > napi_gro_receive() from its NAPI poll function. This is well before > bonding, bridge, et al, are involved, as these drivers don't do NAPI at > all. > > >I used iperf3 to test performance. > >And I limited iperf3 process cpu usage during my testing to simulate a > >cpu bottleneck. > >Otherwise it's difficult to see bandwidth differences when offload is > >on versus off. > > > >I reported a bz for this: https://bugzilla.redhat.com/show_bug.cgi?id=3D= 2183434 > > > >2. Should bonding propagate offload configuration to slaves? > >For now, only "ethtool -K bond0 lro off" can be propagated to slaves, > >others can't be propagated to slaves, e.g. > > ethtool -K bond0 tso on/off > > ethtool -K bond0 gso on/off > > ethtool -K bond0 gro on/off > > ethtool -K bond0 lro on > >All above configurations can't be propagated to bonding slaves. > > The LRO case is because it's set in NETIF_F_UPPER_DISABLES, as > checked in netdev_sync_upper_features() and netdev_sync_lower_features(). > > A subset of features is handled in bond_compute_features(). > Some feature changes, e.g., scatter-gather, do propagate upwards (but > not downwards), as bonding handles NETDEV_FEAT_CHANGE events for its > members (but not vice versa). > > TSO, GSO, and GRO aren't handled in either of these situations, > and so changes don't propagate at all. Whether they should or not is a > separate, complicated, question. E.g., should features propagate > upwards, or downwards? How many levels of nesting? > > -J > > >I reports a bz for this: https://bugzilla.redhat.com/show_bug.cgi?id=3D2= 183777 > > > >I am using the RHEL with kernel 4.18.0-481.el8.x86_64. > > > >BR, > >Liang Li > > > > --- > -Jay Vosburgh, jay.vosburgh@canonical.com >