Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4879358rwl; Mon, 10 Apr 2023 19:11:46 -0700 (PDT) X-Google-Smtp-Source: AKy350b5VS4a2dU12yD2t6Eg2JC6WrA9qlFRE8JDxlMi0I2orEgkM3dWEaFNSo8P8H8tLBPK7V0R X-Received: by 2002:a17:902:ce06:b0:19c:d309:4612 with SMTP id k6-20020a170902ce0600b0019cd3094612mr15859647plg.6.1681179105996; Mon, 10 Apr 2023 19:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681179105; cv=none; d=google.com; s=arc-20160816; b=C0OGC4my0yHW/SjQ4t9y4IUMPrY0wjgOMWE/90+oefC6sepXXwNHr/BsrquYHtJkjS hoCk7Q1bbvlGumo6Qc+HJtZfL+I8ODonaNc7UaK3p32hPzqr2qcQWT4iL50daNLcRf0a hfJ9yERoyTNaiqzeCE/l8JbkwKUUnJl5F7unC7UuuvtVKTR0oFH13RtJPNPte78MPUjv ocjNp8kakZD0NnBaLDIuTTDSR5oXMT7+l+8Di0SwCSyX7XOJK3tVRz65r6vNX2bdtgBv lH02LvCePLCQInwZXIKot2c0/jap1TGoVOOPnTYkLhw8L8G+LG0OfZby+ynpfHtY2E/W ZaIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=dq/jgHiMD7j0wpafaOGOIYLpQOC3UElRmvxuFksoqVg=; b=wTA5mISUNcMe9hIXyzfyGyfmsODPtw/uzvGJyRDmaPWUqNEsSAxQ5e5WOzgCj1+qZC zLgvrjREehoGtzZRQCcGsv+cgub3SkJTGUtcRRcr6oGw1yGsOZeSDYeoEd/GPG5rri+Z xwBWCo74vftbjlmPkGf7IC2YPCHst36lkle4/p//Mmu4hfsoGAolx1DkWu1dgL57uos9 He1XHwx2vnUpLA4Nb8OKJ+L5eXVOjeY5TPLZ7MAxnmiuo9XNzo1sWtGb1/xNSqTNTw5r ImL4P1+esLGYTKDtl8yZwz0CxK+p8vUqWvvAJOLNkZP1gl0zNkNFGsqONqpTyXouYa97 gxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RL4zKOw9; 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 q13-20020a170902f34d00b001a52707c0adsi7281484ple.1.2023.04.10.19.11.34; Mon, 10 Apr 2023 19:11:45 -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=RL4zKOw9; 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 S229911AbjDKBsS (ORCPT + 99 others); Mon, 10 Apr 2023 21:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbjDKBsR (ORCPT ); Mon, 10 Apr 2023 21:48:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A49522680 for ; Mon, 10 Apr 2023 18:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681177647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=dq/jgHiMD7j0wpafaOGOIYLpQOC3UElRmvxuFksoqVg=; b=RL4zKOw90UWdxMG7rz1REc6bFmfcqcMblqQ+BhaXysAvlTxI/76K1tHj7bkelbATEbS6tL tkeBMGwselvYN+V+iYHqEJv8KMro9jeAPpJGH26vtnkixBKSkI5Gsnw9wNlonB71W0jaGx qE8PyYPxocSSLtvdHI1pDQyv1crd+9k= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-204-rPbWIXx5M2uq-p8aXOZFOw-1; Mon, 10 Apr 2023 21:47:26 -0400 X-MC-Unique: rPbWIXx5M2uq-p8aXOZFOw-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-94a56ea01e9so65983866b.1 for ; Mon, 10 Apr 2023 18:47:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681177645; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dq/jgHiMD7j0wpafaOGOIYLpQOC3UElRmvxuFksoqVg=; b=qZXGLetlTWzV3Gf9bZwsqvsXUEs/AGV/p1NrTmkJj1yhmZ332xvev+IPJsoZqLcc1E XGJjSBOcn9iCFd69bo2LtL0TYh66Ti4iGUysHwIiAh4CKujY57I8920/E4We/QFmPWYc CefYYi4WW8aPXOmZx4rn7N7c9aEKhezfUo9QPRS0+zM7KD//Rc1BqYrROTHeojhGRbjU BWzXOmDi1+7Cu8JzCvi7saFBAmGV713i9bjBxEMCsK1Kp3Ozh/NC8BB2sWLKk4VPoWKM XZ5MFr8ugcCf7FKvGYvUjcrm8NZcA2eemYbaDvidGgz9mdzSc3Ck77d4kfRW905V4hTY SjGQ== X-Gm-Message-State: AAQBX9cO3/Z+96pPTu/q1mY7pq0ILnJSioDZ1PyecJPEtL8pwtxGd1O0 L63bTugioFJh4udNxIEciZYOPiyQsGm72w6VyaafXcjCEfIhGaIpqMEY6w8/CoEAHyOTjUwC+SI wXSjt/Q2K/rhPAOPTSaGzOGxnp/riQsItpUOBxKcU X-Received: by 2002:a50:a40d:0:b0:504:9b56:687f with SMTP id u13-20020a50a40d000000b005049b56687fmr2753653edb.5.1681177645279; Mon, 10 Apr 2023 18:47:25 -0700 (PDT) X-Received: by 2002:a50:a40d:0:b0:504:9b56:687f with SMTP id u13-20020a50a40d000000b005049b56687fmr2753645edb.5.1681177645027; Mon, 10 Apr 2023 18:47:25 -0700 (PDT) MIME-Version: 1.0 From: Liang Li Date: Tue, 11 Apr 2023 09:47:14 +0800 Message-ID: Subject: [Question] About bonding offload To: j.vosburgh@gmail.com, 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" 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 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 off. 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? 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=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. I reports a bz for this: https://bugzilla.redhat.com/show_bug.cgi?id=2183777 I am using the RHEL with kernel 4.18.0-481.el8.x86_64. BR, Liang Li