summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasesh Mody <rasesh.mody@cavium.com>2017-07-24 03:19:07 -0700
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:55:38 +0800
commit10dd6220817348302903c29b3614a14a539d74c9 (patch)
tree915fde02613caf6333eb9289e6e93b1be33846c4
parent9747893cbf7eb8458d0dd1ff7d9b09b180a4f955 (diff)
downloaddpdk-stable-10dd6220817348302903c29b3614a14a539d74c9.zip
dpdk-stable-10dd6220817348302903c29b3614a14a539d74c9.tar.gz
dpdk-stable-10dd6220817348302903c29b3614a14a539d74c9.tar.xz
net/qede: fix chip details print
[ upstream commit 3818ac224fd7ff536b233d711ba6e9654186ab09 ] Fix chip details printed as part of print adapter info Fixes: 2ea6f76aff40 ("qede: add core driver") Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
-rw-r--r--drivers/net/qede/qede_ethdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index 9fae40b..bf3c2c8 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -308,9 +308,10 @@ static void qede_print_adapter_info(struct qede_dev *qdev)
DP_INFO(edev, "*********************************\n");
DP_INFO(edev, " DPDK version:%s\n", rte_version());
- DP_INFO(edev, " Chip details : %s%d\n",
+ DP_INFO(edev, " Chip details : %s %c%d\n",
ECORE_IS_BB(edev) ? "BB" : "AH",
- CHIP_REV_IS_A0(edev) ? 0 : 1);
+ 'A' + edev->chip_rev,
+ (int)edev->chip_metal);
snprintf(ver_str, QEDE_PMD_DRV_VER_STR_SIZE, "%d.%d.%d.%d",
info->fw_major, info->fw_minor, info->fw_rev, info->fw_eng);
snprintf(drv_ver, QEDE_PMD_DRV_VER_STR_SIZE, "%s_%s",