From patchwork Wed Jun 6 20:03:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 163423 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 A7DF0B6F9A for ; Thu, 7 Jun 2012 06:04:15 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758172Ab2FFUEE (ORCPT ); Wed, 6 Jun 2012 16:04:04 -0400 Received: from exht1.emulex.com ([138.239.113.183]:15312 "EHLO exht1.ad.emulex.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758056Ab2FFUEA (ORCPT ); Wed, 6 Jun 2012 16:04:00 -0400 Received: from akhaparde-VBox (138.239.131.97) by exht1.ad.emulex.com (138.239.113.183) with Microsoft SMTP Server id 8.3.159.2; Wed, 6 Jun 2012 13:03:38 -0700 Date: Wed, 6 Jun 2012 15:03:36 -0500 From: Ajit Khaparde To: CC: Subject: [PATCH ethtool] ethtool: fix to display support for KX4 and KX PHY Message-ID: <20120606200336.GA21620@akhaparde-VBox> Reply-To: Ajit Khaparde MIME-Version: 1.0 Content-Disposition: inline X-URL: http://www.emulex.com Organization: Emulex Corp User-Agent: "Ajit's Mutt" X-OS: Linux i686 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Ajit Khaparde --- ethtool.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ethtool.c b/ethtool.c index f18f611..546a43a 100644 --- a/ethtool.c +++ b/ethtool.c @@ -424,6 +424,13 @@ dump_link_caps(const char *prefix, const char *an_prefix, u32 mask) if (mask & ADVERTISED_1000baseT_Full) { did1++; fprintf(stdout, "1000baseT/Full "); } + if (did1 && (mask & ADVERTISED_1000baseKX_Full)) { + fprintf(stdout, "\n"); + fprintf(stdout, " %*s", indent, ""); + } + if (mask & ADVERTISED_1000baseKX_Full) { + did1++; fprintf(stdout, "1000baseKX/Full "); + } if (did1 && (mask & ADVERTISED_2500baseX_Full)) { fprintf(stdout, "\n"); fprintf(stdout, " %*s", indent, ""); @@ -438,6 +445,13 @@ dump_link_caps(const char *prefix, const char *an_prefix, u32 mask) if (mask & ADVERTISED_10000baseT_Full) { did1++; fprintf(stdout, "10000baseT/Full "); } + if (did1 && (mask & ADVERTISED_10000baseKX4_Full)) { + fprintf(stdout, "\n"); + fprintf(stdout, " %*s", indent, ""); + } + if (mask & ADVERTISED_10000baseKX4_Full) { + did1++; fprintf(stdout, "10000baseKX4/Full "); + } if (did1 && (mask & ADVERTISED_20000baseMLD2_Full)) { fprintf(stdout, "\n"); fprintf(stdout, " %*s", indent, "");