Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/imx Use M_BUFADDR.
details: https://anonhg.NetBSD.org/src/rev/f027fd0301e2
branches: trunk
changeset: 965504:f027fd0301e2
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Sep 20 08:48:55 2019 +0000
description:
Use M_BUFADDR.
diffstat:
sys/arch/arm/imx/if_enet.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diffs (34 lines):
diff -r fadbd78c0726 -r f027fd0301e2 sys/arch/arm/imx/if_enet.c
--- a/sys/arch/arm/imx/if_enet.c Fri Sep 20 08:45:29 2019 +0000
+++ b/sys/arch/arm/imx/if_enet.c Fri Sep 20 08:48:55 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_enet.c,v 1.26 2019/09/13 07:55:05 msaitoh Exp $ */
+/* $NetBSD: if_enet.c,v 1.27 2019/09/20 08:48:55 maxv Exp $ */
/*
* Copyright (c) 2014 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.26 2019/09/13 07:55:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_enet.c,v 1.27 2019/09/20 08:48:55 maxv Exp $");
#include "vlan.h"
@@ -1528,14 +1528,7 @@
* m_dat[] (aligned) to en-
* large trailingspace
*/
- if (mt->m_flags & M_EXT) {
- ap = mt->m_ext.ext_buf;
- } else if (mt->m_flags &
- M_PKTHDR) {
- ap = mt->m_pktdat;
- } else {
- ap = mt->m_dat;
- }
+ ap = M_BUFADDR(mt);
ap = ALIGN_PTR(ap, ALIGNBYTE);
memcpy(ap, mt->m_data,
mt->m_len);
Home |
Main Index |
Thread Index |
Old Index