Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3642251pxb; Mon, 9 Nov 2020 17:20:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlF0SXjvt/GzVLIl1oWgnM1/4lVWAl8QeH40KhPsVfA+R8gjY91VmFZNgbaB47niHkbo/q X-Received: by 2002:a17:906:7d16:: with SMTP id u22mr17616233ejo.169.1604971231911; Mon, 09 Nov 2020 17:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604971231; cv=none; d=google.com; s=arc-20160816; b=gSF0ADdcyG6Jf+PYo8ZPAwtDyR26Nazt5sOEBWfI3ahVgFsgSCmvx3q8VqehTGmtJ8 r0LAJ/GrG+JsKTJcJED3lv5Rs2t98GcHetBRDfb96jy4kZeg8UqglEnmH79nVcGlW/YI 5GAUO3i3sk6iamuuhpOZE8pj7neoLdQtsvhZ77ALwD/IeyS2uI6Ze8x/1IXKeSXurHzI YhDpnr27kQFjzMV7XbHsVuP0JHu9EZnA723t7eissXJXLelqSrdivPL0D7g+ia7aunJ6 xN7KU6ukq796TOFLcYSqXMedQE3KinulEtZLFjda/xo4z3Sfzjh+3PyBlU7ukoxwGtyy k8rw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=h6Dfh//5Jmag9nuOio2hPCsX8lyP5olWc23d/5S6OKU=; b=kH3xVM1UpTqoIN8+EdyO7qonelupgt2ALk5Nt9zKSVyLox+BYh5/rq1wMuJaL7c+2e vPaHH+bp9kwA1c+qiEdgFbHjpeUVhsH7CfSabgBv9PsYLzgoVdw/KAB1UWBLtoa/FN1+ /sct5uvGp9L+oDwRqY4sCXuEweEPnuHhCrCB11Dj45u8UThiRPfzocyFTpzdEwsB0X8m 40xkS9oJsSCaizAC6E+VJ3KLqTM8gepcnlpGUqFJLJCWrGjg9gApAsQpS/CI06eFFOjv +VBYJI0/qqZrac2HmTiIBYDMexwRql7atrOTVl5C8wTe5DZThLZVv3N8t415mY0QZyOF b82A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w3nE8N2N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx24si8190306edb.419.2020.11.09.17.20.08; Mon, 09 Nov 2020 17:20: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=w3nE8N2N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729983AbgKJBSg (ORCPT + 99 others); Mon, 9 Nov 2020 20:18:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:58170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727311AbgKJBSg (ORCPT ); Mon, 9 Nov 2020 20:18:36 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (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 81690206ED; Tue, 10 Nov 2020 01:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604971115; bh=mFmQP6MVnu8HNriG/I7mYUuPLO04iLDlS9GjAN4ePwo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=w3nE8N2N6wHemOlUVXAuOv0BWy2YpmP466JNYcr7ObFaRtq+ZWWsWJ1h3t5GW2OXi yRffNMjoWJtEbwsSzgOgvlHdkHIe8WgCXY20aRxXuySQJno0rwh13yFwZV60y25iVU Ex6akSEGJ7YEirjhM+knsTaxcG4z4npSuCMburWY= Date: Mon, 9 Nov 2020 17:18:34 -0800 From: Jakub Kicinski To: Michal Kubecek Cc: Alexander Lobakin , "David S. Miller" , Maxim Mikityanskiy , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net] ethtool: netlink: add missing netdev_features_change() call Message-ID: <20201109171834.2a66c56d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201109140002.g45cbbroshyjotdh@lion.mk-sys.cz> References: <20201109140002.g45cbbroshyjotdh@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Nov 2020 15:00:02 +0100 Michal Kubecek wrote: > On Sun, Nov 08, 2020 at 12:46:15AM +0000, Alexander Lobakin wrote: > > 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 Applied, thanks!