From patchwork Thu Jul 2 07:18:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreenivasa Honnur X-Patchwork-Id: 29390 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 666FBB70F2 for ; Thu, 2 Jul 2009 17:18:21 +1000 (EST) Received: by ozlabs.org (Postfix) id 58AD1DDDB6; Thu, 2 Jul 2009 17:18:21 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id CB306DDDA1 for ; Thu, 2 Jul 2009 17:18:20 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753803AbZGBHSJ (ORCPT ); Thu, 2 Jul 2009 03:18:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753576AbZGBHSH (ORCPT ); Thu, 2 Jul 2009 03:18:07 -0400 Received: from barracuda.s2io.com ([72.1.205.138]:37666 "EHLO barracuda.s2io.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbZGBHSG (ORCPT ); Thu, 2 Jul 2009 03:18:06 -0400 X-ASG-Debug-ID: 1246519086-4d7e00160000-gSecQ8 X-Barracuda-URL: http://72.1.205.138:8000/cgi-bin/mark.cgi Received: from guinness.s2io.com (localhost [127.0.0.1]) by barracuda.s2io.com (Spam Firewall) with ESMTP id 2EC85202FAFD; Thu, 2 Jul 2009 03:18:06 -0400 (EDT) Received: from guinness.s2io.com (142-46-210.147.tel-ott.com [142.46.210.147]) by barracuda.s2io.com with ESMTP id UTcsq65i04Kt5MvV; Thu, 02 Jul 2009 03:18:06 -0400 (EDT) X-Barracuda-Envelope-From: Sreenivasa.Honnur@neterion.com X-ASG-Whitelist: Client Received: from guinness.s2io.com (localhost [127.0.0.1]) by guinness.s2io.com (8.12.6/8.12.6) with ESMTP id n627I6md014219; Thu, 2 Jul 2009 03:18:06 -0400 (EDT) Received: from localhost (shonnur@localhost) by guinness.s2io.com (8.12.6/8.12.6/Submit) with ESMTP id n627I6qg014216; Thu, 2 Jul 2009 03:18:06 -0400 (EDT) Date: Thu, 2 Jul 2009 03:18:06 -0400 (EDT) From: Sreenivasa Honnur To: davem@davemloft.net cc: netdev@vger.kernel.org, support@neterion.com X-ASG-Orig-Subj: [net-next-2.6 PATCH 8/9] vxge: Printing the function's configured mode of operation Subject: [net-next-2.6 PATCH 8/9] vxge: Printing the function's configured mode of operation Message-ID: MIME-Version: 1.0 X-Barracuda-Connect: 142-46-210.147.tel-ott.com[142.46.210.147] X-Barracuda-Start-Time: 1246519087 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at s2io.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org - Printing the function's configured mode of operation. Signed-off-by: Sreenivasa Honnur Signed-off-by: Ramkrishna Vepa --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -pNur patch-7-net-next-2.6/drivers/net/vxge/vxge-main.c patch-8-net-next-2.6/drivers/net/vxge/vxge-main.c --- patch-7-net-next-2.6/drivers/net/vxge/vxge-main.c 2009-06-30 17:18:17.000000000 -0700 +++ patch-8-net-next-2.6/drivers/net/vxge/vxge-main.c 2009-06-30 17:34:52.000000000 -0700 @@ -4325,6 +4325,27 @@ vxge_probe(struct pci_dev *pdev, const s ll_config.device_hw_info.fw_version.version, ll_config.device_hw_info.fw_date.date); + if (new_device) { + switch (ll_config.device_hw_info.function_mode) { + case VXGE_HW_FUNCTION_MODE_SINGLE_FUNCTION: + vxge_debug_init(VXGE_TRACE, + "%s: Single Function Mode Enabled", vdev->ndev->name); + break; + case VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION: + vxge_debug_init(VXGE_TRACE, + "%s: Multi Function Mode Enabled", vdev->ndev->name); + break; + case VXGE_HW_FUNCTION_MODE_SRIOV: + vxge_debug_init(VXGE_TRACE, + "%s: Single Root IOV Mode Enabled", vdev->ndev->name); + break; + case VXGE_HW_FUNCTION_MODE_MRIOV: + vxge_debug_init(VXGE_TRACE, + "%s: Multi Root IOV Mode Enabled", vdev->ndev->name); + break; + } + } + vxge_print_parm(vdev, vpath_mask); /* Store the fw version for ethttool option */