diff options
author | Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> | 2009-07-01 17:18:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-05 22:16:41 -0400 |
commit | 0a25bdc69634fb343c4b23e3422a37e5819448f1 (patch) | |
tree | f1d918b512e2a0d832c9dfd8bcfb02a389fca01f /drivers/net/vxge | |
parent | 22fa125ee24f8db497fa447c145a4a1293fab098 (diff) |
vxge: Printing the function's configured mode of operation
- 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>
Diffstat (limited to 'drivers/net/vxge')
-rw-r--r-- | drivers/net/vxge/vxge-main.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index eaf916b90aba..7b5402b50d0a 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -4325,6 +4325,27 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
4325 | ll_config.device_hw_info.fw_version.version, | 4325 | ll_config.device_hw_info.fw_version.version, |
4326 | ll_config.device_hw_info.fw_date.date); | 4326 | ll_config.device_hw_info.fw_date.date); |
4327 | 4327 | ||
4328 | if (new_device) { | ||
4329 | switch (ll_config.device_hw_info.function_mode) { | ||
4330 | case VXGE_HW_FUNCTION_MODE_SINGLE_FUNCTION: | ||
4331 | vxge_debug_init(VXGE_TRACE, | ||
4332 | "%s: Single Function Mode Enabled", vdev->ndev->name); | ||
4333 | break; | ||
4334 | case VXGE_HW_FUNCTION_MODE_MULTI_FUNCTION: | ||
4335 | vxge_debug_init(VXGE_TRACE, | ||
4336 | "%s: Multi Function Mode Enabled", vdev->ndev->name); | ||
4337 | break; | ||
4338 | case VXGE_HW_FUNCTION_MODE_SRIOV: | ||
4339 | vxge_debug_init(VXGE_TRACE, | ||
4340 | "%s: Single Root IOV Mode Enabled", vdev->ndev->name); | ||
4341 | break; | ||
4342 | case VXGE_HW_FUNCTION_MODE_MRIOV: | ||
4343 | vxge_debug_init(VXGE_TRACE, | ||
4344 | "%s: Multi Root IOV Mode Enabled", vdev->ndev->name); | ||
4345 | break; | ||
4346 | } | ||
4347 | } | ||
4348 | |||
4328 | vxge_print_parm(vdev, vpath_mask); | 4349 | vxge_print_parm(vdev, vpath_mask); |
4329 | 4350 | ||
4330 | /* Store the fw version for ethttool option */ | 4351 | /* Store the fw version for ethttool option */ |