aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2026-02-06 17:52:53 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2026-02-26 14:17:22 +0000
commit59c399d38dd8c711a9b9ae2f6614eed80afdde63 (patch)
tree30ff45c4b27288b92370001eb0d9fcb375d8efdd /sys
parent8f1de03b50d00211597d7221055b44890fea7fd8 (diff)
qlnxe: Remove a pointless copy back from the link-layer addressstable/13
On ifnet attaching, ether_ifattach() makes the link-layer address by shadow copying the ha->primary_mac. Well, the link-layer address will not be altered during attaching, thus it is pointless to copy it back. No functional change intended. Reviewed by: kbowling MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D54883 (cherry picked from commit 4ac3081b282800158df7abe93f307d76e1b5b808) (cherry picked from commit 23ffd1650cc431e762387d384ede99ae085bc130) (cherry picked from commit 7d7cee09b9a4ac5cbcbac79cb7ccfef5d6db1e0f)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/qlnx/qlnxe/qlnx_os.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index ad7843dd5596..c1179d83a679 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -2440,8 +2440,6 @@ 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_LLADDR(ha->ifp), ha->primary_mac, ETHER_ADDR_LEN);
-
QL_DPRINT2(ha, "exit\n");
return;