Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/dev/pci/ixgbe Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/29c1f07f0fce
branches:  netbsd-8
changeset: 461217:29c1f07f0fce
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Nov 19 10:48:15 2019 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #1451):

        sys/dev/pci/ixgbe/ixgbe.c: revision 1.216
        sys/dev/pci/ixgbe/ixv.c: revision 1.141

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 35bf18db3580 -r 29c1f07f0fce sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Tue Nov 19 10:45:11 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Tue Nov 19 10:48:15 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.88.2.36 2019/10/17 18:39:41 martin Exp $ */
+/* $NetBSD: ixgbe.c,v 1.88.2.37 2019/11/19 10:48:15 martin 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 35bf18db3580 -r 29c1f07f0fce sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Tue Nov 19 10:45:11 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Tue Nov 19 10:48:15 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.56.2.27 2019/11/14 15:53:39 martin Exp $*/
+/*$NetBSD: ixv.c,v 1.56.2.28 2019/11/19 10:48:15 martin Exp $*/
 
 /******************************************************************************
 
@@ -1623,6 +1623,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