Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2535611yba; Mon, 6 May 2019 07:39:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9xh4aOj6+smKWtgLma45bAqLnaIhbY4vZlOh9az60gmQgAnZ/KVItoVBWBqDLZdix4pSl X-Received: by 2002:a65:5003:: with SMTP id f3mr1029827pgo.336.1557153539913; Mon, 06 May 2019 07:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557153539; cv=none; d=google.com; s=arc-20160816; b=D2QROVJ7/TlmAiIg4kqeQQhMp7tnNZ6EhbQolyf51bvmSv4qBWMJR1fEjJcPFrJIh1 Vb1Bu1HaleOeG0BcGms3UzUlvSWBuZBYzKQKP/gofP7TANHrLrRTdonlax1IZT/7iiYN 3LaNu3lM4aQGGPZK76V/wSGEF3agcxQXpFxCOAEuFfggxZI0Hs3dCobxdqraIay/1tLO 9gZnIW3O46wGnWdRXkNLt0KA7AoDXggYgW6LvE3T1h5xVtaw8KiyCGfqoX6pG2BiYjOU SJVlyytQaYmfrYzsiGpBPPj95yuocjaNZvw8JU2twHnkzO01tXqeKGNC+ntPjfw+Z2kC MB+Q== 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=XHtBZAwZpDt4aZ5C/+tfQmXpEE4aigdpzG4WsPqy7+4=; b=o1zLXM99DamKTK3C5LAw0Ke3OLIVPTV/aevwqp+2T7Al9fYDJhrGbVrKlHd38oHCPH +Bn2aLIPAe1TJ4+nXljcv8kiapZk44u3K5ObH2CWR6yLpXaFRwgvGp2Zgx4B4qRUyZ7d 3c5OeBM/SE3Yfom5l5IqjADNdpP8aOchnqEXzEIV9MaDKIIW9xOIQjce4Gjs6MB6uAHK rWz00yRwxETZ0SvP6BeHuxi4aGJ3HXaVohuivNcNBDbd5Te+joPCATyjb36KshsojZ0c AjdPEQXsI/+USmSuhdLMS907MhPeaspf6b7gUd6z2Hg+LuHSfRDOJCYVeqsQKW09tTaz kqrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q5VXfRvN; 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 22si12580848pgm.134.2019.05.06.07.38.44; Mon, 06 May 2019 07:38:59 -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; dkim=pass header.i=@kernel.org header.s=default header.b=q5VXfRvN; 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 S1727311AbfEFOhD (ORCPT + 99 others); Mon, 6 May 2019 10:37:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:57596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727291AbfEFOhC (ORCPT ); Mon, 6 May 2019 10:37:02 -0400 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 47F49206A3; Mon, 6 May 2019 14:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153421; bh=rLDf/z599L+TxF1cg/rwNNt0iqybU0xScUBZmXOil6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q5VXfRvNZhuykYh2ikc+ZKwpZ+Or7MkpIKsUMTQLlxKYW1Ry+EckhJGaP5tj+j/RM AQYHKyqFohPRKfrHgO/iCYtJlawVvxnL8yub5GlvkTDdMLfmAY7rhPtqXBqVNbml9d 4pFkqfumNpbLizuQZvUpcdnq5ScDPjIaWotN1rh0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Assmann , Jeff Kirsher , "Sasha Levin (Microsoft)" Subject: [PATCH 5.0 042/122] i40e: fix WoL support check Date: Mon, 6 May 2019 16:31:40 +0200 Message-Id: <20190506143058.693436013@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@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 [ Upstream commit f669d24f3dd00beab452c0fc9257f6a942ffca9b ] The current check for WoL on i40e is broken. Code comment says only magic packet is supported, so only check for that. Fixes: 540a152da762 (i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE) Signed-off-by: Stefan Assmann Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin (Microsoft) --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index a6bc7847346b..5d544e661445 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -2378,8 +2378,7 @@ static int i40e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) return -EOPNOTSUPP; /* only magic packet is supported */ - if (wol->wolopts && (wol->wolopts != WAKE_MAGIC) - | (wol->wolopts != WAKE_FILTER)) + if (wol->wolopts & ~WAKE_MAGIC) return -EOPNOTSUPP; /* is this a new value? */ -- 2.20.1