From: David Miller Subject: Re: [PATCH v3] vmxnet3: set carrier state properly on probe Date: Tue, 29 Jan 2013 16:29:44 -0500 (EST) Message-ID: <20130129.162944.795210914241663520.davem@davemloft.net> References: <20130129.154430.2272042048726099861.davem@davemloft.net> <1359494145-28803-1-git-send-email-nhorman@tuxdriver.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, pv-drivers@vmware.com, bhutchings@solarflare.com To: nhorman@tuxdriver.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:60564 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949Ab3A2V3q (ORCPT ); Tue, 29 Jan 2013 16:29:46 -0500 In-Reply-To: <1359494145-28803-1-git-send-email-nhorman@tuxdriver.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Neil Horman Date: Tue, 29 Jan 2013 16:15:45 -0500 > vmxnet3 fails to set netif_carrier_off on probe, meaning that when an interface > is opened the __LINK_STATE_NOCARRIER bit is already cleared, and so > /sys/class/net//operstate remains in the unknown state. Correct this by > setting netif_carrier_off on probe, like other drivers do. > > Also, while we're at it, lets remove the netif_carrier_ok checks from the > link_state_update function, as that check is atomically contained within the > netif_carrier_[on|off] functions anyway > > Tested successfully by myself > > Signed-off-by: Neil Horman Applied, thanks Neil.