Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1364572pxa; Thu, 13 Aug 2020 07:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6op3H0BTdHgOLlD3NpVY04zdKgPHt479HFbTC0INYqL9ADzMigZVem3Zn/3RntAiPEzZQ X-Received: by 2002:a05:6402:2069:: with SMTP id bd9mr4775560edb.127.1597327823820; Thu, 13 Aug 2020 07:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597327823; cv=none; d=google.com; s=arc-20160816; b=s60KRG9/KEuhAar1yjQY9JcdTs/DHxLap1RapXY4JexDN/IVyxViNf4MPETVDyEVhl gc+xXmZzWhbWN+mF8j1j5x5X1xGJlo2nrs5BB2C3QmKJM8obVIj1PHmjOzalWRGdlouw 4+E/AC1WraCascOBb10VqX73OIjWVeTyYW+r556LNMWg+BwnhyMezFBHkVrOKLAVDeIR rP8m7TeBprRp341aaP6CSNK+xa1BMNWmL3gD2dNnkHc6wzpL6DcP/eEf8i9bRb4LmkyC pFlV33lGq3q4JotFDcyPS08dPGTSHCCaI/uO5nWUymZftQOCHiKXW+pbznSJNTn+TGU1 wgoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zGXP4qw+AnPxVdaG8af/8IcGg0r93+iBSNIWSEPA6j8=; b=C5yb+LUugTB1WNKKpGGsBon29byyII2NFaLxjPQM3i9TrR/FB8H1hua010oJO1N85R grAUS57H36Lrsk5Net9etYNLE4ZWtq0PKfGWYFMi6X32JK7cQKYSoeZnRC6tA1B1JhRf 8kpL4rmq+wS3yvVKvEE/FVGuX9KAYlb67DqaW/3S9LGZSibaKHl5AqtyE3/mh+ej1NM2 Q8Tv3H6nkH+sVayCmIpOl7sHjFpQylAWcg85JSErMXSI0ZsyEngwNPV5uQ9xalhjHFcF 5Cfzetbc92QMtCD/hTuS+TlX9R2gH69eF48dHJ1ZMhyujGGnia0Juqul/0UARaFZ98QE Wmgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QLUvqXVI; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si3232838ejb.724.2020.08.13.07.09.56; Thu, 13 Aug 2020 07:10:23 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QLUvqXVI; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgHMOHP (ORCPT + 99 others); Thu, 13 Aug 2020 10:07:15 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:33280 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726053AbgHMOHM (ORCPT ); Thu, 13 Aug 2020 10:07:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597327630; 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: in-reply-to:in-reply-to:references:references; bh=zGXP4qw+AnPxVdaG8af/8IcGg0r93+iBSNIWSEPA6j8=; b=QLUvqXVINTXUM8ERNWq/oNzrDPpO8amLPEPmWHRrtlhf9fI6E3gfusAOTIzTu+8LBMxDNm QER24JuYaUDER3H7gzjSV6yys+g1zBoydbXft7GQ9295jbZtmreJtOQm/0qB1bL/JQ90ml A52klH09zL0qhjPXeoxI+Dz5Xmm26Ws= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-410-dZkGXCqRMbyriU9pqb1ZNw-1; Thu, 13 Aug 2020 10:07:07 -0400 X-MC-Unique: dZkGXCqRMbyriU9pqb1ZNw-1 Received: by mail-oo1-f72.google.com with SMTP id r66so2881085ooa.17 for ; Thu, 13 Aug 2020 07:07:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zGXP4qw+AnPxVdaG8af/8IcGg0r93+iBSNIWSEPA6j8=; b=d+9rZ1GM3NEZSjZ1M/YBqFE8w0Q9UIEwxJ9zk2sLhvkVcpIQHQsPqBz4MqY+quY6+7 Q46Stq5r2o7KNs3nDOkCGnOZ3fmpu+VpjGNjr187hZye0Hl4YF+qLU4Rg5hk9MkudqOz HftgWAJNNVCxDww/l0R2x2KrN8s7ewhSTZgdBENv9aNz6o/kzXsOzPbLWVHq1+5a7iIa AIeHYhydYGCHCrhDx5Pu1/EmPDbR6ju/MGQLMyVkz+Y8eSRakca1Ne86sUE1cGGPjjes bYIsLateAyslIjQcNG9hFxEg6rcTVnJvKFkJfbYInJXS1KDHZSc3w8lzOltHJandM5AB X5OA== X-Gm-Message-State: AOAM533RRkEu2r+/mJzYYSO6vytExRyez6iOFD7D/uObluAfFPXGGMRH 0Av3SA6n2UPtvBjwr7ROphTpmdXY+ECEC/KCvQ9sUB/WrYL+FknpfgKakL8BNxEHEnVZoAgGrVi lCu2XheVqRtWcnuuF5ewODoQQeIUOuB5uGUJjRSTv X-Received: by 2002:a4a:52c2:: with SMTP id d185mr4787882oob.8.1597327626802; Thu, 13 Aug 2020 07:07:06 -0700 (PDT) X-Received: by 2002:a4a:52c2:: with SMTP id d185mr4787847oob.8.1597327626508; Thu, 13 Aug 2020 07:07:06 -0700 (PDT) MIME-Version: 1.0 References: <20200813035509.739-1-jarod@redhat.com> <27389.1597296596@famine> In-Reply-To: <27389.1597296596@famine> From: Jarod Wilson Date: Thu, 13 Aug 2020 10:06:56 -0400 Message-ID: Subject: Re: [PATCH net] bonding: show saner speed for broadcast mode To: Jay Vosburgh Cc: LKML , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Netdev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 13, 2020 at 1:30 AM Jay Vosburgh wrote: > > Jarod Wilson wrote: > > >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 lowest active interface. > > Did you mean "slowest" here? I think I was thinking "lowest speed", but the way it's written does seem a little ambiguous, and slowest would fit better. I'll repost with slowest. > >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 > >Signed-off-by: Jarod Wilson > > Did you notice this by inspection, or did it come up in use > somewhere? I can't recall ever hearing of anyone using broadcast mode, > so I'm curious if there is a use for it, but this change seems > reasonable enough regardless. Someone working on our virt management tools was working on something displaying bonding speeds in the UI, and reached out, thinking the reporting for broadcast mode was wrong. My response was similar: I don't think I've ever actually used broadcast mode or heard of anyone using it, but for that one person who does, sure, we can probably make that adjustment. :) -- Jarod Wilson jarod@redhat.com