From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] net: set default_ethtool_ops in register_netdevice Date: Wed, 09 Jan 2013 23:57:38 -0800 (PST) Message-ID: <20130109.235738.467651533138068641.davem@davemloft.net> References: <20130108153850.GA10464@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=euc-kr Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org, edumazet@google.com, greearb@candelatech.com, bjorn@mork.no, linux-wireless@vger.kernel.org, bhutchings@solarflare.com, mirqus@gmail.com To: sgruszka@redhat.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:53418 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932621Ab3AJH5j (ORCPT ); Thu, 10 Jan 2013 02:57:39 -0500 In-Reply-To: <20130108153850.GA10464@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: =46rom: Stanislaw Gruszka Date: Tue, 8 Jan 2013 16:38:51 +0100 > Since: >=20 > commit 2c60db037034d27f8c636403355d52872da92f81 > Author: Eric Dumazet > Date: Sun Sep 16 09:17:26 2012 +0000 >=20 > net: provide a default dev->ethtool_ops >=20 > wireless core does not correctly assign ethtool_ops. In order to fix > the problem, move assignement of default_ethtool_ops to > register_netdevice(). This is safe because both register_netdevice() > and dev_ethtool() are protected by RTNL lock. >=20 > Patch is besed on hint of Micha=A9=A9 Miros=A9=A9aw. >=20 > Signed-off-by: Stanislaw Gruszka > Cc: stable@vger.kernel.org # 3.7+ > --- > v1 -> v2: change order of default_ethtool_ops initialization to avoid > the problem. Change the subject accordingly. I don't understand this. Why is the assignment of default_ethtool_ops at netdev allocation time not working? Is wireless really not using alloc_netdev*()?