Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp734561ybc; Sat, 16 Nov 2019 07:46:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzn7xFtmrYI46S3Lu3hCXtUJ6gdca+2AWr6BBsC7PzPfJ0DZrRR3yoUNXlAkSaiind8FFJd X-Received: by 2002:a17:906:d71:: with SMTP id s17mr10649217ejh.312.1573919212584; Sat, 16 Nov 2019 07:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919212; cv=none; d=google.com; s=arc-20160816; b=odr8XKHRS+XlNp+w7T9NO3CIWb4nXo2uXDdotqMdRObAdzYajHQKnmWRwXA/4SRa0s UuAVQUaGB7pLogZDTk33DBus5mgE3Fr0NCFFz267HgKBw4SeM6Jz+HE59rMOYyMcFTts DjUf7wvXQ9zeq43LjzE97rQMvoM8enDgrobPrOd9Gl32ccBnHl4YCl2DSbma3ZYN2qj0 5MYxUq4zhOXi2GjzobhD+dULGPaQUNuVAFGgFSJgsz+2i3cFRL/shLIiC4+mPhSqjcey Nf4GPk3HI/paBDNhnP02ombAoieec77QHUTLGQcJzARatcgQaCwGzeUEoQaCPvpiidYZ BjBQ== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=npmLdk1ogkElWNQhsOAaUBACRiDb+W5xmcnjI7+t34U=; b=NPxWEMhs+tErXy5ELhBiRycVdlwWiBaN/lBSaoD++MYNqpUDMz9AizCS4ruSFcCv0w k8Cu9sTAc5x8VBl20hQ8E+IwA3m0C3xEBa5XmN6pJW0+aloGN6u4hi4t6a2574DKVgk7 dEi33NOJI1Z4FdbdlvQacYQjlnc60nGoZ7Rm4FfL6P7PPmIbPhEBs2ui7hqEEanUTGw/ O5zMohvMVtjvriHZKZAttPrwFLb53PZGHmMKolW9AC0owwV03bgA5TgL3t5fGGcdyxWx muxIuVM0HJuDACm4jDpXd6bMzIbaY32IaXWJED2jVgHFYWrmYmmViZr0n4gtd/KuDmUS 01vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MhIRfMLC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si8075755ejr.262.2019.11.16.07.46.28; Sat, 16 Nov 2019 07:46:52 -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=MhIRfMLC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728971AbfKPPo1 (ORCPT + 99 others); Sat, 16 Nov 2019 10:44:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:49152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727880AbfKPPoY (ORCPT ); Sat, 16 Nov 2019 10:44:24 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 60A832072D; Sat, 16 Nov 2019 15:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919063; bh=cgHiA7DDTWxGxz5X7SG64ZBTuO5N5bph52IcLJ9ZLyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MhIRfMLC+U4vkLRgXNKPXrJZIiXYt3XEWFpZLNCpYaRheOTIvGn2C715vTwbCXVd1 ehwOITNUKqCdaOh+MuOy1KiOHxS7PAQvr+PlOfsZTopYzYIvHek8trJSsbg3keSbAO SGd/bIJEN/IOoN/Cy/Liw0LkJSrKAN7CZSDQoP0Y= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sabrina Dubroca , Radu Rendec , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 135/237] macsec: let the administrator set UP state even if lowerdev is down Date: Sat, 16 Nov 2019 10:39:30 -0500 Message-Id: <20191116154113.7417-135-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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