Module Name:    src
Committed By:   maxv
Date:           Fri Jun  1 09:10:52 UTC 2018

Modified Files:
        src/sys/dev/ic: rtl8169.c

Log Message:
Use m_remove_pkthdr() instead of "&= ~M_PKTHDR", to ensure the tags get
freed. Several other drivers have this problem it seems...


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/dev/ic/rtl8169.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/rtl8169.c
diff -u src/sys/dev/ic/rtl8169.c:1.152 src/sys/dev/ic/rtl8169.c:1.153
--- src/sys/dev/ic/rtl8169.c:1.152	Tue Sep 26 07:42:06 2017
+++ src/sys/dev/ic/rtl8169.c	Fri Jun  1 09:10:52 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: rtl8169.c,v 1.152 2017/09/26 07:42:06 knakahara Exp $	*/
+/*	$NetBSD: rtl8169.c,v 1.153 2018/06/01 09:10:52 maxv Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998-2003
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.152 2017/09/26 07:42:06 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.153 2018/06/01 09:10:52 maxv Exp $");
 /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */
 
 /*
@@ -1189,7 +1189,7 @@ re_rxeof(struct rtk_softc *sc)
 			if (sc->re_head == NULL)
 				sc->re_head = sc->re_tail = m;
 			else {
-				m->m_flags &= ~M_PKTHDR;
+				m_remove_pkthdr(m);
 				sc->re_tail->m_next = m;
 				sc->re_tail = m;
 			}
@@ -1276,7 +1276,7 @@ re_rxeof(struct rtk_softc *sc)
 				m_freem(m);
 			} else {
 				m->m_len -= ETHER_CRC_LEN;
-				m->m_flags &= ~M_PKTHDR;
+				m_remove_pkthdr(m);
 				sc->re_tail->m_next = m;
 			}
 			m = sc->re_head;

Reply via email to