Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6017118ybc; Wed, 27 Nov 2019 13:28:34 -0800 (PST) X-Google-Smtp-Source: APXvYqy/Ky/GrkS2ENXL9BsewE1wOTxAyy3PaU0O21y+VU84yiloFlWi5qdAZKkuxwyde3lSvKwZ X-Received: by 2002:a17:906:6852:: with SMTP id a18mr51762887ejs.193.1574890114214; Wed, 27 Nov 2019 13:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890114; cv=none; d=google.com; s=arc-20160816; b=0zaNijzWELDKsckgHcoXSG7Ye3CzmXJLX/mNyM2lugFCU4tNzIJV6z1eg2KwBFKON4 g5+VBqpVzda0UL6eaPdroOnvW6zvIQs6eMxJqjAXhrmY1Gea06kuzM2cbc9XOCS6xysf shlHwwzEuePebsotGK5dVozrmv7CsjU5AgN5Gcn6soE273DeTchQcqvKZCvjn+BI1GiU 9Y90gf8WM4XhjDO9JSRvAcoRnB0S9hiObJ9OlLmY/lXpCtbcZs2OXraiLwYC8t3U0K4U 3CfqC7f866WDbrkJUhZjNcoT7PkwidHOlyG9v9kbEHq4NZW5Km+I80Ytx9XokYsZGlIV y5Wg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=npmLdk1ogkElWNQhsOAaUBACRiDb+W5xmcnjI7+t34U=; b=s/QVfWuvN9wTfJ8RAATldRY6j1doDTOykRM9/9NrAPywrIxaFGaXfbPciVJHu6Zl1i zdiLIeGPk8YlHUZ3HWiBp4+40vSDlRklSDtS3gzkMaGcjk8yl1e4tv6whjOEy4LnNINi f9efTAxkdJWxOUeKTJzFQlioDTKXigICWcxGHFvtF3/zWfo17pvp2ErwbNs+M1DJPgEg D8660x6kzCSwcHox/x8TZb6zwZr3bGe/ajcDcFJT4M976Pc6ET/dMt4gQj0UoqpAG0j/ LQvPGWq+K7Drhyykvv/fI6ngGzwztccL42B5F7c2w1iJJm6tQxR+obQj7mSQaqmO51DQ qciw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ai551BFz; 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 dm19si3152038edb.214.2019.11.27.13.28.10; Wed, 27 Nov 2019 13:28:34 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ai551BFz; 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 S1731711AbfK0VBZ (ORCPT + 99 others); Wed, 27 Nov 2019 16:01:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:53504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730869AbfK0VBW (ORCPT ); Wed, 27 Nov 2019 16:01:22 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2760C215A4; Wed, 27 Nov 2019 21:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888481; bh=cgHiA7DDTWxGxz5X7SG64ZBTuO5N5bph52IcLJ9ZLyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ai551BFz9tH9JAnr03nxiOpCzMQDxPnOjEa2ruyh2Np9cSZyX0deXUyHCvCWTbDAC W3HCIeuzPE1Oeo8K8MQEvLSr8B4S3ipoFw5hRW3sxVuQVaV+66ciuTo7cgukd6ocvk agZt5gLGnO/dLynyR19xfc8ggEJ+7CIMJRlgzAOo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Radu Rendec , Sabrina Dubroca , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 152/306] macsec: let the administrator set UP state even if lowerdev is down Date: Wed, 27 Nov 2019 21:30:02 +0100 Message-Id: <20191127203126.795033991@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sabrina Dubroca [ Upstream commit 07bddef9839378bd6f95b393cf24c420529b4ef1 ] Currently, the kernel doesn't let the administrator set a macsec device up unless its lower device is currently up. This is inconsistent, as a macsec device that is up won't automatically go down when its lower device goes down. Now that linkstate propagation works, there's really no reason for this limitation, so let's remove it. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Reported-by: Radu Rendec Signed-off-by: Sabrina Dubroca Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/macsec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 50acd8c9d7f53..10a8ef2d025a1 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -2813,9 +2813,6 @@ static int macsec_dev_open(struct net_device *dev) struct net_device *real_dev = macsec->real_dev; int err; - if (!(real_dev->flags & IFF_UP)) - return -ENETDOWN; - err = dev_uc_add(real_dev, dev->dev_addr); if (err < 0) return err; -- 2.20.1