vxge: Printing the function's configured mode of operation
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
Wed, 1 Jul 2009 21:18:06 +0000 (21:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2009 02:16:41 +0000 (19:16 -0700)
- Printing the function's configured mode of operation.

Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-main.c

index eaf916b90aba7b8cff93125d2a24412f173344f7..7b5402b50d0aecf23c38002cdab3d3b5fb5e82ec 100644 (file)
@@ -4325,6 +4325,27 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
                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 */