Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3865240pxb; Tue, 17 Nov 2020 05:43:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsolwR3qiU0ejcMubAGQ5UeAKY7rqT7HePXHGPdHoOvM41k4w9VcoMuOrfQFHkhzUvF3zA X-Received: by 2002:a17:906:491a:: with SMTP id b26mr20289303ejq.385.1605620611519; Tue, 17 Nov 2020 05:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620611; cv=none; d=google.com; s=arc-20160816; b=QbX7vwJHzKNVzsG5VShcgkDJLAc6oQObjoRp7hJ/ZU/zeWwNfnWSwKDInmcTHC/O0x w+1Q9VpjFz3fJsbwkPsZd341vu3j3JqNwnLdzaLpyldtksjssYrmrpkgA8h/r8T35Uq6 aodHN/Rc+5NRzMHBNWrcMwyzKGX8WrQAINHijkhnREs9IU1KmqwV5SaZg8Y17IJJIUvN 4GKyR46Fv5GOzfcf2LtuUXCiSRqVMgivv8zjNVd0oqO7SI1i07xig29tCYoH5meMWn4d YD3zz1mF+nL520m4BkPIYxYvdOE24j2skbp3UXW3cM32EFB5/UKXFKCsNAf0sLJ8G5hM VKXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PXt7N0s1x9JNwvX+HfSLGaiMuV8K0n5wZNujzWV1HiU=; b=vl2JXZyDpFXZ/lK6ej3lDiN3Sf7bjzQVgXFigYP5iyLADwPNUvfMfbp1srCE5M2JJ3 NVyx3ZmiSBlLZespklqJqLMi0Yctbn4e9ZPAPOF4Qn91QA8HDYbclbe3RUEGYQWgdR99 yEuAZRjlWEMb6CNm3A4gPxftEiJWFEuTQUH4dO5SkB9ISOsfCbtaBs/VtUKK1a4QFeCt teiYFxlFyKKC8mV/57K5Pn6WE5N1vXFLwKQLMDY/DM68iOAbSsqwEYTeBwC9l4MGGWzF ziYumgmWzdVgu45v50zbIvs9wlcagag4rW/c2F3i92pBO4zSwP9b4p+IGnW9iR3njU9F 8iXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=toBYG0Uk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si13325173eje.628.2020.11.17.05.43.08; Tue, 17 Nov 2020 05:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=toBYG0Uk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733263AbgKQNlx (ORCPT + 99 others); Tue, 17 Nov 2020 08:41:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:54102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733165AbgKQNlj (ORCPT ); Tue, 17 Nov 2020 08:41:39 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 B4CFF206A5; Tue, 17 Nov 2020 13:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620498; bh=9+ncCqJJpbFKUYLc0d9uLHM+Il62XQEZkE3Tu1iWE5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=toBYG0UkAH86xvemPHKoM9AozYAnyJebB6jgzppMswRzy3/gwON4EjENIe2Ht7maE TDK9Wt9U4xEyvFssR0UFpp0zmi1uD3pwy24Zj4BZSzKiRK0B23zWdMv2ljUov23LgC xdYE/Loms3OSGVLezqBLtTb92L1IyEHpR4KLnrWs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Lobakin , Michal Kubecek , Jakub Kicinski Subject: [PATCH 5.9 239/255] ethtool: netlink: add missing netdev_features_change() call Date: Tue, 17 Nov 2020 14:06:19 +0100 Message-Id: <20201117122150.569161863@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Lobakin [ Upstream commit 413691384a37fe27f43460226c4160e33140e638 ] After updating userspace Ethtool from 5.7 to 5.9, I noticed that NETDEV_FEAT_CHANGE is no more raised when changing netdev features through Ethtool. That's because the old Ethtool ioctl interface always calls netdev_features_change() at the end of user request processing to inform the kernel that our netdevice has some features changed, but the new Netlink interface does not. Instead, it just notifies itself with ETHTOOL_MSG_FEATURES_NTF. Replace this ethtool_notify() call with netdev_features_change(), so the kernel will be aware of any features changes, just like in case with the ioctl interface. This does not omit Ethtool notifications, as Ethtool itself listens to NETDEV_FEAT_CHANGE and drops ETHTOOL_MSG_FEATURES_NTF on it (net/ethtool/netlink.c:ethnl_netdev_event()). >From v1 [1]: - dropped extra new line as advised by Jakub; - no functional changes. [1] https://lore.kernel.org/netdev/AlZXQ2o5uuTVHCfNGOiGgJ8vJ3KgO5YIWAnQjH0cDE@cp3-web-009.plabs.ch Fixes: 0980bfcd6954 ("ethtool: set netdev features with FEATURES_SET request") Signed-off-by: Alexander Lobakin Reviewed-by: Michal Kubecek Link: https://lore.kernel.org/r/ahA2YWXYICz5rbUSQqNG4roJ8OlJzzYQX7PTiG80@cp4-web-028.plabs.ch Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ethtool/features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ethtool/features.c +++ b/net/ethtool/features.c @@ -296,7 +296,7 @@ int ethnl_set_features(struct sk_buff *s active_diff_mask, compact); } if (mod) - ethtool_notify(dev, ETHTOOL_MSG_FEATURES_NTF, NULL); + netdev_features_change(dev); out_rtnl: rtnl_unlock();