From patchwork Thu Sep 30 16:18:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Oledzki X-Patchwork-Id: 66180 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EA003B6F07 for ; Fri, 1 Oct 2010 02:19:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756683Ab0I3QTO (ORCPT ); Thu, 30 Sep 2010 12:19:14 -0400 Received: from bizon.gios.gov.pl ([195.187.34.71]:52183 "EHLO bizon.gios.gov.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754737Ab0I3QTN (ORCPT ); Thu, 30 Sep 2010 12:19:13 -0400 X-Virus-Scanned: amavisd-new at gios.gov.pl Received: from bizon.gios.gov.pl (ole@localhost6 [IPv6:::1]) by bizon.gios.gov.pl (8.14.3/8.14.3) with ESMTP id o8UGJ0G9014286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Sep 2010 18:19:02 +0200 Received: (from ole@localhost) by bizon.gios.gov.pl (8.14.3/8.14.3/Submit) id o8UGIxeL014284; Thu, 30 Sep 2010 18:18:59 +0200 X-Authentication-Warning: bizon.gios.gov.pl: ole set sender to Krzysztof Piotr Oledzki using -r Date: Thu, 30 Sep 2010 18:18:59 +0200 From: Krzysztof Piotr Oledzki To: fubar@us.ibm.com, bonding-devel@lists.sourceforge.net, netdev@vger.kernel.org Subject: [net-next-2.6 PATCH 1/3] bonding: print information about speed and duplex seen by the driver Message-ID: <4ca4b873.iZ0Dea7Y1OFcVmf8%ole@ans.pl> User-Agent: nail 11.25 7/29/05 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From d4fb10933bb88f2bf410b0abe42f151c13e3df85 Mon Sep 17 00:00:00 2001 From: Krzysztof Piotr Oledzki Date: Thu, 30 Sep 2010 17:05:19 +0200 Subject: bonding: print information about speed and duplex seen by the driver before: bonding: bond0: link status definitely up for interface eth5 bonding: bond0: link status definitely up for interface eth0 after: bonding: bond0: link status definitely up for interface eth5, 100 Mbps full duplex. bonding: bond0: link status definitely up for interface eth0, 100 Mbps full duplex. Signed-off-by: Krzysztof Piotr Oledzki --- drivers/net/bonding/bond_main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index fb70c3e..721abc4 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2368,8 +2368,9 @@ static void bond_miimon_commit(struct bonding *bond) slave->state = BOND_STATE_BACKUP; } - pr_info("%s: link status definitely up for interface %s.\n", - bond->dev->name, slave->dev->name); + pr_info("%s: link status definitely up for interface %s, %d Mbps %s duplex.\n", + bond->dev->name, slave->dev->name, + slave->speed, slave->duplex ? "full" : "half"); /* notify ad that the link status has changed */ if (bond->params.mode == BOND_MODE_8023AD)