Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1200852ybi; Fri, 24 May 2019 19:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiGDQ6cCvq4A8SXH2VOOFbhfHYdCy6wXhB1EOkjkWpZZwHZr704D1Nrp1Q6m8dEfMy6WsV X-Received: by 2002:a62:4d04:: with SMTP id a4mr45592193pfb.177.1558752197401; Fri, 24 May 2019 19:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558752197; cv=none; d=google.com; s=arc-20160816; b=qm/7yP3cMyCUFjUailGhcWsmhB5nBPxGlgUBIhW/p2zMmm586CX3VG9zkOQYel3var ESKKqqhwcXR5d7t0IeUECLufe1vlhAH+VhZlRWeFW27ObOcTPOhxUBeRQfgepsS0ZGNc kPe/fCXnF4kejl92FXozzKwz5gvMLrL7d/pT/dydQYs+FcTjXuaf/+6gmNddtNGuf/mG Qh/R/jcMjI24K+zP01GbehJv0XLhTlMw1bllp/R6R9m/Z5sFRETGo6l89cJi+gUrugsx LfvNgJUqufDvoxFiRkpopcipXw/FHyjEH6VjKehbYwoT4RUCf7cPGMPLogcOYsEnpi7J TKYA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uqb/Dm53fa10HqijxGSyvTbjczwBnykJKyOoNGrbupU=; b=T0AQ2cjCUvLE5YYwfJBaPNGstLRn8LI1CyIPDzTrGwXuGb4jj7f/+JpEHbeTn67msn TXxM5rRs0RxNHcW5u6UTXOE/mjvxf8ZmRB+FXwOl3we+qD9fB+Nw+BbrFwgoY4gcpIZL dljjTsWfgTbABBP5ZbHApXmEs+jXBCoCf+DNAM5xM+jX4369z+CNAgCKmK5jeMy60AZR Idj89/izlerQE0WzonXDZ9KRikW0aN/LTcAF6uEneWQZ6HzOXUO2bG4HUTazT/3ASJwR 4rX/esjxTEwghfHa5p3GDXnmJZET/GqBA0PhuYpABN2TZfEBd7XaVUOuYBh2ogksbI5+ a9dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si7697445pfp.284.2019.05.24.19.43.02; Fri, 24 May 2019 19:43:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbfEYCkr (ORCPT + 99 others); Fri, 24 May 2019 22:40:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60740 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbfEYCkr (ORCPT ); Fri, 24 May 2019 22:40:47 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0B0673082DDD; Sat, 25 May 2019 02:40:47 +0000 (UTC) Received: from Hades.local (dhcp-17-185.bos.redhat.com [10.18.17.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0C7019C4F; Sat, 25 May 2019 02:40:45 +0000 (UTC) Subject: Re: [PATCH net] bonding/802.3ad: fix slave link initialization transition states To: Jay Vosburgh Cc: linux-kernel@vger.kernel.org, Veaceslav Falico , Andy Gospodarek , "David S. Miller" , netdev@vger.kernel.org, Heesoon Kim References: <20190524134928.16834-1-jarod@redhat.com> <30882.1558732616@famine> From: Jarod Wilson Message-ID: Date: Fri, 24 May 2019 22:40:44 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <30882.1558732616@famine> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Sat, 25 May 2019 02:40:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/24/19 5:16 PM, Jay Vosburgh wrote: > Jarod Wilson wrote: > >> Once in a while, with just the right timing, 802.3ad slaves will fail to >> properly initialize, winding up in a weird state, with a partner system >> mac address of 00:00:00:00:00:00. This started happening after a fix to >> properly track link_failure_count tracking, where an 802.3ad slave that >> reported itself as link up in the miimon code, but wasn't able to get a >> valid speed/duplex, started getting set to BOND_LINK_FAIL instead of >> BOND_LINK_DOWN. That was the proper thing to do for the general "my link >> went down" case, but has created a link initialization race that can put >> the interface in this odd state. > > Reading back in the git history, the ultimate cause of this > "weird state" appears to be devices that assert NETDEV_UP prior to > actually being able to supply sane speed/duplex values, correct? > > Presuming that this is the case, I don't see that there's much > else to be done here, and so: > > Acked-by: Jay Vosburgh Correct, we've got an miimon "device is up", but still can't get speed and/or duplex in this case. -- Jarod Wilson jarod@redhat.com