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/f51089cd1877
branches:  trunk
changeset: 461178:f51089cd1877
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 b60af0f0fb6d -r f51089cd1877 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 b60af0f0fb6d -r f51089cd1877 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