Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic awge: drop redundant m_adj(). Handled via uipc_mb...



details:   https://anonhg.NetBSD.org/src/rev/9dc163b2cc15
branches:  trunk
changeset: 464733:9dc163b2cc15
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Oct 19 06:40:20 2019 +0000

description:
awge: drop redundant m_adj(). Handled via uipc_mbuf.c r1.235 instead.

diffstat:

 sys/dev/ic/dwc_gmac.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 35686db56203 -r 9dc163b2cc15 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Sat Oct 19 06:36:47 2019 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Sat Oct 19 06:40:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.67 2019/10/15 17:19:05 tnn Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.68 2019/10/19 06:40:20 tnn Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.67 2019/10/15 17:19:05 tnn Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.68 2019/10/19 06:40:20 tnn Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -501,7 +501,6 @@
                }
                data->rd_m->m_len = data->rd_m->m_pkthdr.len
                    = data->rd_m->m_ext.ext_size;
-               m_adj(data->rd_m, (-(uintptr_t)data->rd_m->m_data) & 0x3f);
                if (data->rd_m->m_len > AWGE_MAX_PACKET) {
                        data->rd_m->m_len = data->rd_m->m_pkthdr.len
                            = AWGE_MAX_PACKET;
@@ -1275,7 +1274,6 @@
                        goto skip;
                }
                mnew->m_len = mnew->m_pkthdr.len = mnew->m_ext.ext_size;
-               m_adj(mnew, (-(uintptr_t)mnew->m_data) & 0x3f);
                if (mnew->m_len > AWGE_MAX_PACKET) {
                        mnew->m_len = mnew->m_pkthdr.len = AWGE_MAX_PACKET;
                }



Home | Main Index | Thread Index | Old Index