aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2025-06-12 16:53:33 +0000
committerKristof Provost <kp@FreeBSD.org>2025-06-13 14:48:51 +0000
commit4f7473d18a62077a218ac00817bae09a95b8cbcb (patch)
tree81da45d0fa097e3173a91cc97de84b2f77f6e256 /sys/dev
parentbd8621c6cd8a7499e7c8be189cf1ffd102dcc9d1 (diff)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/qlnx/qlnxe/qlnx_os.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index a984908abf34..05ec69a70dfe 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -2339,9 +2339,6 @@ qlnx_init_ifnet(device_t dev, qlnx_host_t *ha)
ha->primary_mac[5] = (rnd >> 16) & 0xFF;
}
- ether_ifattach(ifp, ha->primary_mac);
- bcopy(if_getlladdr(ha->ifp), ha->primary_mac, ETHER_ADDR_LEN);
-
if_setcapabilities(ifp, IFCAP_HWCSUM);
if_setcapabilitiesbit(ifp, IFCAP_JUMBO_MTU, 0);
@@ -2396,6 +2393,9 @@ qlnx_init_ifnet(device_t dev, qlnx_host_t *ha)
ifmedia_set(&ha->media, (IFM_ETHER | IFM_AUTO));
+ ether_ifattach(ifp, ha->primary_mac);
+ bcopy(if_getlladdr(ha->ifp), ha->primary_mac, ETHER_ADDR_LEN);
+
QL_DPRINT2(ha, "exit\n");
return;