From owner-svn-src-projects@FreeBSD.ORG Thu Nov 13 10:14:30 2008 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC5921065670; Thu, 13 Nov 2008 10:14:30 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7535A8FC16; Thu, 13 Nov 2008 10:14:30 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mADAEUUV055405; Thu, 13 Nov 2008 10:14:30 GMT (envelope-from lstewart@svn.freebsd.org) Received: (from lstewart@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mADAEUnH055404; Thu, 13 Nov 2008 10:14:30 GMT (envelope-from lstewart@svn.freebsd.org) Message-Id: <200811131014.mADAEUnH055404@svn.freebsd.org> From: Lawrence Stewart Date: Thu, 13 Nov 2008 10:14:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184915 - projects/tcp_cc_8.x/sys/netinet X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:14:31 -0000 Author: lstewart Date: Thu Nov 13 10:14:30 2008 New Revision: 184915 URL: http://svn.freebsd.org/changeset/base/184915 Log: - Remove an unnecessary printf and malloc type - Clean up some white space Modified: projects/tcp_cc_8.x/sys/netinet/cc.c Modified: projects/tcp_cc_8.x/sys/netinet/cc.c ============================================================================== --- projects/tcp_cc_8.x/sys/netinet/cc.c Thu Nov 13 09:53:53 2008 (r184914) +++ projects/tcp_cc_8.x/sys/netinet/cc.c Thu Nov 13 10:14:30 2008 (r184915) @@ -59,9 +59,6 @@ struct cc_head cc_list = STAILQ_HEAD_INI struct rwlock cc_list_lock; -MALLOC_DECLARE(M_STRING); -MALLOC_DEFINE(M_STRING, "string", "a string"); - /* create a struct to point to our newreno functions */ struct cc_algo newreno_cc_algo = { .name = "newreno", @@ -248,7 +245,6 @@ cc_register_algorithm(struct cc_algo *ad int newreno_init(struct tcpcb *tp) { - printf("initialising tcp connection with newreno congestion control\n"); return 0; } @@ -349,10 +345,10 @@ newreno_ack_received(struct tcpcb *tp, s /* * update the value of ssthresh before entering FR */ -void +void newreno_pre_fr(struct tcpcb *tp, struct tcphdr *th) { - newreno_ssthresh_update(tp); + newreno_ssthresh_update(tp); } /* @@ -360,7 +356,7 @@ newreno_pre_fr(struct tcpcb *tp, struct * th can be null, in which case cwnd will be set according to reno instead * of new reno. */ -void +void newreno_post_fr(struct tcpcb *tp, struct tcphdr *th) { /*