Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1562348pxt; Sat, 7 Aug 2021 15:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXUMmlhpK7Ypsg9aQ/eXwrWAKIneV8yB/DxEI58z32m++4B1tAUWXxKHlZnn6Iz3OMW04w X-Received: by 2002:a17:906:d20b:: with SMTP id w11mr16150297ejz.242.1628376378630; Sat, 07 Aug 2021 15:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628376378; cv=none; d=google.com; s=arc-20160816; b=Jn0k/MYcxfblgnOx2T3bm5WN6mfi9NzkqvY6SCTn7QxKg0uba211SqCNcXvxr2Wpyr JLgWGBALMZwErsaamDfUugJELBbYMG22uDGiDAy9jeIpeoNqiM0K9lQxnMyEbt1CmBTP YJKFpAUt29OUypIC1C5TCPcisFgTp8IJbNJUf3wAJxmHzY9RBoE6ovVnFUYWjdJNM5Sy OI8lq8h/KYgLGPQaeaEyhc0aiFOaZUYQTU3Cve5WFiJPJNtb1x/JDHiPV9ZjX78VFxxp 38QkviCDBTuBI67mgIVxklLqyyHkCE4KMQHueFI/k01P/PJFojsXM8qRXrYil3M88dw+ 5Eow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:comments :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=G9duVisYT1xEcW17Z4N6y/MIlXkHahKN2T7r/8xAxHg=; b=qn9E8TX5Amy3OUBKOOcl1HpUNDuAPxZ9WmraVqA1Z+iCvxPLHYiaMjNzpBHtHtQa8a 4k7AEAONbJL3mWIc1IqUebg0HvyUXPJLErCjB/YkDuc8SUQ7Nk2OoRRIDjlkSFKbfPHj m0HZP0Qy2wNDQnM69Aaa68HPGClgeEpyJtlPbkTi0Q1aBdp9eOEwtYsZO7o85tfi1fPc R8S1zgio5LRQuVjmfg/+DnoC492RKUqeWw+vZSWj4uo8WOnoGyqEs4FZfNqzN9W356mp ahEkfKAwAOson52zteZYllRuY923J8cAc9vtM0kkQTEKG8jC9sDLVL+AVVtzFib2hnHf QdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=IoyX9VPY; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si13837657edj.103.2021.08.07.15.45.55; Sat, 07 Aug 2021 15:46:18 -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=@canonical.com header.s=20210705 header.b=IoyX9VPY; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbhHGWmf (ORCPT + 99 others); Sat, 7 Aug 2021 18:42:35 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:33120 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhHGWme (ORCPT ); Sat, 7 Aug 2021 18:42:34 -0400 Received: from famine.localdomain (1.general.jvosburgh.us.vpn [10.172.68.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id E0A7A3F043; Sat, 7 Aug 2021 22:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628376136; bh=G9duVisYT1xEcW17Z4N6y/MIlXkHahKN2T7r/8xAxHg=; h=From:To:cc:Subject:In-reply-to:References:MIME-Version: Content-Type:Date:Message-ID; b=IoyX9VPYzhDyXMBcKeLSoqGC+GtiqqnhgRacncza7TxLNsLP4Ttxcwk47qF+01sRS ZoPFBbBgWBnL0rOggSWGX0bIjwGWeTKnw1d3Kac8e25q4BOqo9veGopEJrta2/sApj MSfcTSCD6ZWtiq4if8XxQ1OtNAx4z8mngWtV06ItXVZ/hOMTWDEVBoGg3FiBWUx7h4 qCltsWChCv7u/uI477bkmtilZvz+tltbn/dUfzgeBeelXrfvv+vTNC0QG3gTdSb4Ir 5eB323XFMX+aSRKfo9w3w36ZHJRK9lhlgyxCfsOL+QKQ1z6xAfmU7AQXUYFXT5Cg2o iRHEafqhloMdw== Received: by famine.localdomain (Postfix, from userid 1000) id 35F8A5FDD5; Sat, 7 Aug 2021 15:42:14 -0700 (PDT) Received: from famine (localhost [127.0.0.1]) by famine.localdomain (Postfix) with ESMTP id 2D0E59FAC3; Sat, 7 Aug 2021 15:42:14 -0700 (PDT) From: Jay Vosburgh To: Jonathan Toppins cc: "netdev@vger.kernel.org" , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Jakub Kicinski , LKML Subject: Re: bonding: link state question In-reply-to: <020577f3-763d-48fd-73ce-db38c3c7fdf9@redhat.com> References: <020577f3-763d-48fd-73ce-db38c3c7fdf9@redhat.com> Comments: In-reply-to Jonathan Toppins message dated "Sat, 07 Aug 2021 17:26:34 -0400." X-Mailer: MH-E 8.6+git; nmh 1.6; GNU Emacs 27.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22625.1628376134.1@famine> Date: Sat, 07 Aug 2021 15:42:14 -0700 Message-ID: <22626.1628376134@famine> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jonathan Toppins wrote: >Is there any reason why bonding should have an operstate of up when none >of its slaves are in an up state? In this particular scenario it seems >like the bonding device should at least assert NO-CARRIER, thoughts? > >$ ip -o -d link show | grep "bond5" >2: enp0s31f6: mtu 1500 qdisc >fq_codel master bond5 state DOWN mode DEFAULT group default qlen 1000\ >link/ether 8c:8c:aa:f8:62:16 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 >maxmtu 9000 \ bond_slave state ACTIVE mii_status UP link_failure_count >0 perm_hwaddr 8c:8c:aa:f8:62:16 queue_id 0 numtxqueues 1 numrxqueues 1 >gso_max_size 65536 gso_max_segs 65535 >41: bond5: mtu 1500 qdisc noqueue >state UP mode DEFAULT group default qlen 1000\ link/ether >8c:8c:aa:f8:62:16 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu >65535 \ bond mode balance-xor miimon 0 updelay 0 downdelay 0 >peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none I'm going to speculate that your problem is that miimon and arp_interval are both 0, and the bond then doesn't have any active mechanism to monitor the link state of its interfaces. There might be a warning in dmesg to this effect. Do you see what you'd consider to be correct behavior if miimon is set to 100? -J >arp_all_targets any primary_reselect always fail_over_mac none >xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 >min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select >stable tlb_dynamic_lb 1 numtxqueues 16 numrxqueues 16 gso_max_size 65536 >gso_max_segs 65535 > >$ cat /sys/class/net/enp0s31f6/operstate >down > >$ cat /sys/class/net/bond5/operstate >up > >This is an older kernel (4.18.0-305.7.1.el8_4.x86_64) but I do not see any >changes upstream that would indicate a change in this operation. > >Thanks, >-Jon --- -Jay Vosburgh, jay.vosburgh@canonical.com