Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe Print device name in ixv_attach().
details: https://anonhg.NetBSD.org/src/rev/03702302c9ef
branches: trunk
changeset: 356454:03702302c9ef
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Sep 27 10:31:29 2017 +0000
description:
Print device name in ixv_attach().
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 17 +----------------
sys/dev/pci/ixgbe/ixv.c | 9 ++++++++-
2 files changed, 9 insertions(+), 17 deletions(-)
diffs (90 lines):
diff -r 5f9bb2179331 -r 03702302c9ef sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Sep 27 10:19:48 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Sep 27 10:31:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.100 2017/08/31 02:48:55 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.101 2017/09/27 10:31:29 msaitoh Exp $ */
/******************************************************************************
@@ -823,15 +823,9 @@
case ixgbe_mac_82599EB:
str = "82599EB";
break;
- case ixgbe_mac_82599_vf:
- str = "82599 VF";
- break;
case ixgbe_mac_X540:
str = "X540";
break;
- case ixgbe_mac_X540_vf:
- str = "X540 VF";
- break;
case ixgbe_mac_X550:
str = "X550";
break;
@@ -841,15 +835,6 @@
case ixgbe_mac_X550EM_a:
str = "X550EM A";
break;
- case ixgbe_mac_X550_vf:
- str = "X550 VF";
- break;
- case ixgbe_mac_X550EM_x_vf:
- str = "X550EM X VF";
- break;
- case ixgbe_mac_X550EM_a_vf:
- str = "X550EM A VF";
- break;
default:
str = "Unknown";
break;
diff -r 5f9bb2179331 -r 03702302c9ef sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Wed Sep 27 10:19:48 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Wed Sep 27 10:31:29 2017 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.65 2017/09/15 08:31:32 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.66 2017/09/27 10:31:29 msaitoh Exp $*/
/******************************************************************************
@@ -284,6 +284,7 @@
ixgbe_vendor_info_t *ent;
const struct pci_attach_args *pa = aux;
const char *apivstr;
+ const char *str;
char buf[256];
INIT_DEBUGOUT("ixv_attach: begin");
@@ -348,18 +349,23 @@
switch (hw->device_id) {
case IXGBE_DEV_ID_82599_VF:
hw->mac.type = ixgbe_mac_82599_vf;
+ str = "82599 VF";
break;
case IXGBE_DEV_ID_X540_VF:
hw->mac.type = ixgbe_mac_X540_vf;
+ str = "X540 VF";
break;
case IXGBE_DEV_ID_X550_VF:
hw->mac.type = ixgbe_mac_X550_vf;
+ str = "X550 VF";
break;
case IXGBE_DEV_ID_X550EM_X_VF:
hw->mac.type = ixgbe_mac_X550EM_x_vf;
+ str = "X550EM X VF";
break;
case IXGBE_DEV_ID_X550EM_A_VF:
hw->mac.type = ixgbe_mac_X550EM_a_vf;
+ str = "X550EM A VF";
break;
default:
/* Shouldn't get here since probe succeeded */
@@ -368,6 +374,7 @@
goto err_out;
break;
}
+ aprint_normal_dev(dev, "device %s\n", str);
ixv_init_device_features(adapter);
Home |
Main Index |
Thread Index |
Old Index