From 443301e29606cbe121cfc1e92291bacfbf9575c4 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 14 Apr 2011 14:54:22 +0000 Subject: [PATCH] Revert r194662, since it breaks ng_ksocket(4) and may break other socket consumers with alternate sb_upcall. PR: kern/154676 Submitted by: Arnaud Lacombe MFC after: 7 days --- sys/kern/uipc_sockbuf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 2060a2e2176a..2d86d740996c 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -528,9 +528,6 @@ sbappendstream_locked(struct sockbuf *sb, struct mbuf *m) SBLASTMBUFCHK(sb); - /* Remove all packet headers and mbuf tags to get a pure data chain. */ - m_demote(m, 1); - sbcompress(sb, m, sb->sb_mbtail); sb->sb_lastrecord = sb->sb_mb;