From: David Miller Subject: Re: [PATCH net] enic: do not call enic_change_mtu in enic_probe Date: Tue, 31 Jul 2018 14:45:42 -0700 (PDT) Message-ID: <20180731.144542.663911177697587648.davem@davemloft.net> References: <20180730165654.3816-1-gvaradar@cisco.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, benve@cisco.com To: gvaradar@cisco.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:59762 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbeGaX2F (ORCPT ); Tue, 31 Jul 2018 19:28:05 -0400 In-Reply-To: <20180730165654.3816-1-gvaradar@cisco.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Govindarajulu Varadarajan Date: Mon, 30 Jul 2018 09:56:54 -0700 > In commit ab123fe071c9 ("enic: handle mtu change for vf properly") > ASSERT_RTNL() is added to _enic_change_mtu() to prevent it from being > called without rtnl held. enic_probe() calls enic_change_mtu() > without rtnl held. At this point netdev is not registered yet. > Remove call to enic_change_mtu and assign the mtu to netdev->mtu. > > Fixes: ab123fe071c9 ("enic: handle mtu change for vf properly") > Signed-off-by: Govindarajulu Varadarajan Applied.