Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5530725yba; Mon, 13 May 2019 12:30:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBcfDNo5KbPzUQP76k6AzzkEsXjRAem/oAYwLPNh46JxM9wfyP2uxhFe/MXgzQfjWhp+C/ X-Received: by 2002:a17:902:2f:: with SMTP id 44mr33244472pla.137.1557775816399; Mon, 13 May 2019 12:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775816; cv=none; d=google.com; s=arc-20160816; b=ILss1ZEE37YMtpUR26esxvxYdPJDS7n63yimLiaz7ErmhlztGC2CuC9WEnDDx3JoxF JlLLarpbYJ7rBbo0hHTtrPP8AfrlXXtlIXdwYZYrLEcmfvjrh+w/9zgtnGcaypWf6TxO ehBVKEK5eqJyaJqbOYa1QxMicpNid7JMuhVPYYTP5nEPzAnWiBBvrE/VgTB8uCR9hQrh +xWRbjSsqr+beM+Nm0zWOJA0hLgj4LRMx/OJY4+jvq1+cAm/0ov8uIY7i7eW8GFD15EG O00WnFBInZ4i2ZRvdEvTIu1tNUOJ/DJLP7Ajv3QS374IaBkPxcbEbfDIU/wgVRW3zS3W pMhg== 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=a2o1dgvkQp4sxwUiGN1DKEk1TLh2A5yv1bGsVVRFsaA=; b=U/WTwMtobDmKMGVw8zU3eEb/7fzDZfFrhRnElylr/R0a57m433UAkm2CLAkQ2KJQYC 9B2X5NHxTdmjHjPnlMVmLPMCU6SaajdV4RSI1kh29plpGrhfCTQLCMXmvMBJuDlVqE8G IOkj7FYIkKBzFjj64We3bu3fVrx9Kt4F8fIUGSFfPMhDqn5WSEcEmiwZMvGdt24p8DaW N17Iq7X37iU3kLGkBaSjabXvD0P3zaBRSfNdnIVSD9eTGCB3Nb1EH/ET4alGcj4Ea4bx WKDoxw43n/1LmyPP7z4ecJVE85gQgEG8mt6IlaBUSOY0NN+Xgq0egUUflyHNv9uqSdUS ANCQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch16si19115703plb.76.2019.05.13.12.30.00; Mon, 13 May 2019 12:30:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730694AbfEMQor (ORCPT + 99 others); Mon, 13 May 2019 12:44:47 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39850 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729576AbfEMQoq (ORCPT ); Mon, 13 May 2019 12:44:46 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d8]) (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 D6A0E14E25416; Mon, 13 May 2019 09:44:45 -0700 (PDT) Date: Mon, 13 May 2019 09:44:45 -0700 (PDT) Message-Id: <20190513.094445.551211876164198376.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 Subject: Re: [PATCH] bonding: fix arp_validate toggling in active-backup mode From: David Miller In-Reply-To: <20190510215709.19162-1-jarod@redhat.com> References: <20190510215709.19162-1-jarod@redhat.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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]); Mon, 13 May 2019 09:44:46 -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: Fri, 10 May 2019 17:57:09 -0400 > There's currently a problem with toggling arp_validate on and off with an > active-backup bond. At the moment, you can start up a bond, like so: ... > The problem lies in bond_options.c, where passing in arp_validate=0 > results in bond->recv_probe getting set to NULL. This flies directly in > the face of commit 3fe68df97c7f, which says we need to set recv_probe = > bond_arp_recv, even if we're not using arp_validate. Said commit fixed > this in bond_option_arp_interval_set, but missed that we can get to that > same state in bond_option_arp_validate_set as well. > > One solution would be to universally set recv_probe = bond_arp_recv here > as well, but I don't think bond_option_arp_validate_set has any business > touching recv_probe at all, and that should be left to the arp_interval > code, so we can just make things much tidier here. > > Fixes: 3fe68df97c7f ("bonding: always set recv_probe to bond_arp_rcv in arp monitor") ... > Signed-off-by: Jarod Wilson Applied and queued up for -stable, thanks.