svn commit: r184915 - projects/tcp_cc_8.x/sys/netinet
Lawrence Stewart
lstewart at FreeBSD.org
Thu Nov 13 02:14:31 PST 2008
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)
{
/*
More information about the svn-src-projects
mailing list