From patchwork Wed Sep 1 13:35:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chien Tung X-Patchwork-Id: 146781 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o81DYcMl015156 for ; Wed, 1 Sep 2010 13:35:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517Ab0IANfl (ORCPT ); Wed, 1 Sep 2010 09:35:41 -0400 Received: from mga11.intel.com ([192.55.52.93]:20012 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383Ab0IANfl (ORCPT ); Wed, 1 Sep 2010 09:35:41 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 01 Sep 2010 06:35:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,304,1280732400"; d="scan'208";a="833850656" Received: from ctung-mobl1.amr.corp.intel.com (HELO ctung-MOBL.intel.com) ([10.232.237.151]) by fmsmga001.fm.intel.com with SMTP; 01 Sep 2010 06:35:36 -0700 Received: by ctung-MOBL.intel.com (sSMTP sendmail emulation); Wed, 01 Sep 2010 08:35:36 -0500 Date: Wed, 1 Sep 2010 08:35:35 -0500 From: Chien Tung To: Roland Dreier Cc: linux-rdma@vger.kernel.org Subject: [PATCH] RDMA/nes: turn carrier off on ifdown Message-ID: <20100901133535.GA6552@CTUNG-MOBL1> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 01 Sep 2010 13:35:42 +0000 (UTC) diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 6dfdd49..37a6733 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -271,6 +271,7 @@ static int nes_netdev_stop(struct net_device *netdev) if (netif_msg_ifdown(nesvnic)) printk(KERN_INFO PFX "%s: disabling interface\n", netdev->name); + netif_carrier_off(netdev); /* Disable network packets */ napi_disable(&nesvnic->napi);