Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/60749127695e
branches:  netbsd-9
changeset: 843539:60749127695e
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Nov 19 13:17:44 2019 +0000

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

        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 388f0b2bb1e1 -r 60749127695e sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Tue Nov 19 13:15:57 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Tue Nov 19 13:17:44 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.199.2.6 2019/10/17 19:09:14 martin Exp $ */
+/* $NetBSD: ixgbe.c,v 1.199.2.7 2019/11/19 13:17:44 martin Exp $ */
 
 /******************************************************************************
 
@@ -1338,6 +1338,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 388f0b2bb1e1 -r 60749127695e sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Tue Nov 19 13:15:57 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Tue Nov 19 13:17:44 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.125.2.6 2019/11/14 15:30:19 martin Exp $*/
+/*$NetBSD: ixv.c,v 1.125.2.7 2019/11/19 13:17:44 martin 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