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 MAC address.
details: https://anonhg.NetBSD.org/src/rev/e728c8582899
branches: trunk
changeset: 465353:e728c8582899
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Nov 18 03:17:51 2019 +0000
description:
Print MAC address.
XXX Should we move such type of printf() to ether_ifattach?
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 4 +++-
sys/dev/pci/ixgbe/ixv.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r bb83140e45a7 -r e728c8582899 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Mon Nov 18 01:14:03 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Mon Nov 18 03:17:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.215 2019/11/10 21:16:36 chs Exp $ */
+/* $NetBSD: ixgbe.c,v 1.216 2019/11/18 03:17:51 msaitoh Exp $ */
/******************************************************************************
@@ -1333,6 +1333,8 @@
}
adapter->ipq = if_percpuq_create(&adapter->osdep.ec.ec_if);
ether_ifattach(ifp, adapter->hw.mac.addr);
+ aprint_normal_dev(dev, "Ethernet address %s\n",
+ ether_sprintf(adapter->hw.mac.addr));
/*
* We use per TX queue softint, so if_deferred_start_init() isn't
* used.
diff -r bb83140e45a7 -r e728c8582899 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Mon Nov 18 01:14:03 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Mon Nov 18 03:17:51 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.140 2019/11/06 04:17:16 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.141 2019/11/18 03:17:51 msaitoh Exp $*/
/******************************************************************************
@@ -1610,6 +1610,8 @@
}
adapter->ipq = if_percpuq_create(&adapter->osdep.ec.ec_if);
ether_ifattach(ifp, adapter->hw.mac.addr);
+ aprint_normal_dev(dev, "Ethernet address %s\n",
+ ether_sprintf(adapter->hw.mac.addr));
/*
* We use per TX queue softint, so if_deferred_start_init() isn't
* used.
Home |
Main Index |
Thread Index |
Old Index