Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove dead code. It was introduced in rev1 (25 ...



details:   https://anonhg.NetBSD.org/src/rev/74c9d4c8e2f4
branches:  trunk
changeset: 831430:74c9d4c8e2f4
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Mar 30 08:57:32 2018 +0000

description:
Remove dead code. It was introduced in rev1 (25 years ago), and is
irrelevant today.

diffstat:

 sys/netinet/tcp_output.c |  20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diffs (55 lines):

diff -r cd5e82eb7f4a -r 74c9d4c8e2f4 sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c  Fri Mar 30 08:53:51 2018 +0000
+++ b/sys/netinet/tcp_output.c  Fri Mar 30 08:57:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_output.c,v 1.201 2018/03/30 08:53:51 maxv Exp $    */
+/*     $NetBSD: tcp_output.c,v 1.202 2018/03/30 08:57:32 maxv Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -135,7 +135,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.201 2018/03/30 08:53:51 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.202 2018/03/30 08:57:32 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -194,10 +194,6 @@
 #include <netinet/in_offload.h>
 #include <netinet6/in6_offload.h>
 
-#ifdef notyet
-extern struct mbuf *m_copypack();
-#endif
-
 /*
  * Knob to enable Congestion Window Monitoring, and control
  * the burst size it allows.  Default burst is 4 packets, per
@@ -428,16 +424,7 @@
                tcps[TCP_STAT_SNDBYTE] += len;
        }
        TCP_STAT_PUTREF();
-#ifdef notyet
-       if ((m = m_copypack(so->so_snd.sb_mb, off,
-           (int)len, max_linkhdr + hdrlen)) == 0)
-               return ENOBUFS;
-       /*
-        * m_copypack left space for our hdr; use it.
-        */
-       m->m_len += hdrlen;
-       m->m_data -= hdrlen;
-#else
+
        MGETHDR(m, M_DONTWAIT, MT_HEADER);
        if (__predict_false(m == NULL))
                return ENOBUFS;
@@ -514,7 +501,6 @@
                        TCP_OUTPUT_COUNTER_INCR(&tcp_output_copybig);
 #endif
        }
-#endif
 
        *mp = m;
        return 0;



Home | Main Index | Thread Index | Old Index