Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1301705pxa; Sat, 15 Aug 2020 15:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziA8OL4WYo8WjYLN3Yr4LdYRaZix3uAfzxKa91B9Mdq2y7l/V2Rg9qlY8VneHkrwawuTbW X-Received: by 2002:aa7:d818:: with SMTP id v24mr8822496edq.259.1597529006241; Sat, 15 Aug 2020 15:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597529006; cv=none; d=google.com; s=arc-20160816; b=tQIFhWgM/fPIaV9Qlx9cChehySEEEAC5LQEBTni5jnBTQEtr6Xmzben0v0BRrAs4SH 9t1c7c88sjNopA86mYYry1OByuNXGMCBfonI5WC3fqcRQn5cBpqRPxZAx27Kq4pI6D+k QlQa0U6CMOlJW0ZO2PJhBDrDqWeajDlP2R5kHCOsAep4QToZz6iqCvrBpPiBVOBfdL4S o+oeI1xWjfsPOEqWcHXO7OnNLZAKYpIa+z0IAv30L5XL1ga+c1oMjYljSJihPK+1roQu 55NHKyqUX865PfCTszfUxtKEec88T9KpgSkuqnizG6hScq3tYD3HNuDRw58cQsJyKg4k PqOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=jquitGZO72OKx4pILs4h5OLTgEngQzMJTZCdlEIkH58=; b=NoZxUBEg1TPphMzthRFwnKjG0MPA63MZsZ9Yu4qF1ClGC/lrOKkVqtS7+XImt7AoXy 57uxf0GMqUHAnuX28Odm5BAUgovDySXpTW+k0iG5u9OtDzv7FYdMo49zNGmkhMZP7EPW BBNJ/AN9q17TLRHEwb+gytdmJ7FwjIYxPfXLXJbqYP1UkyhtUdtg+LHKx1Gx2OnykrhT hNNmnDigL1ambw3JS6NzI4APb8U18Rzxs/nc2f18zgZM8ME6GghVV771zOiYNZPW6i6T u3B0r8UP/4XJqo6Hk/E7aAsmWjgTdsrZ7T3P6Gapb0Qm76saHG8/imWksu78jq/2aZhC fCCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si7834478ejf.232.2020.08.15.15.03.03; Sat, 15 Aug 2020 15:03:26 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbgHOV7b (ORCPT + 99 others); Sat, 15 Aug 2020 17:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbgHOVvi (ORCPT ); Sat, 15 Aug 2020 17:51:38 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA73C0612EE; Fri, 14 Aug 2020 20:40:25 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 7E202127C1BB6; Fri, 14 Aug 2020 20:23:36 -0700 (PDT) Date: Fri, 14 Aug 2020 20:40:19 -0700 (PDT) Message-Id: <20200814.204019.24901697728238188.davem@davemloft.net> To: jarod@redhat.com Cc: linux-kernel@vger.kernel.org, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, netdev@vger.kernel.org, jay.vosburgh@canonical.com Subject: Re: [PATCH net v2] bonding: show saner speed for broadcast mode From: David Miller In-Reply-To: <20200813140900.7246-1-jarod@redhat.com> References: <20200813035509.739-1-jarod@redhat.com> <20200813140900.7246-1-jarod@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 14 Aug 2020 20:23:36 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jarod Wilson Date: Thu, 13 Aug 2020 10:09:00 -0400 > Broadcast mode bonds transmit a copy of all traffic simultaneously out of > all interfaces, so the "speed" of the bond isn't really the aggregate of > all interfaces, but rather, the speed of the slowest active interface. > > Also, the type of the speed field is u32, not unsigned long, so adjust > that accordingly, as required to make min() function here without > complaining about mismatching types. > > Fixes: bb5b052f751b ("bond: add support to read speed and duplex via ethtool") > CC: Jay Vosburgh > CC: Veaceslav Falico > CC: Andy Gospodarek > CC: "David S. Miller" > CC: netdev@vger.kernel.org > Acked-by: Jay Vosburgh > Signed-off-by: Jarod Wilson > --- > v2: fix description to clarify speed == that of slowest active interface Applied, thank you.