svn commit: r195182 - head/sys/net
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Jun 30 05:21:01 UTC 2009
Author: bz
Date: Tue Jun 30 05:21:00 2009
New Revision: 195182
URL: http://svn.freebsd.org/changeset/base/195182
Log:
In case we cannot queue a packet reaching the queue limit, retain the
semantics netisr_queue() always had and free the mbuf along with
returning the error.
Reviewed by: rwatson
Approved by: re (kensmith)
Modified:
head/sys/net/netisr.c
Modified: head/sys/net/netisr.c
==============================================================================
--- head/sys/net/netisr.c Tue Jun 30 03:18:51 2009 (r195181)
+++ head/sys/net/netisr.c Tue Jun 30 05:21:00 2009 (r195182)
@@ -803,6 +803,7 @@ netisr_queue_workstream(struct netisr_wo
npwp->nw_queued++;
return (0);
} else {
+ m_freem(m);
npwp->nw_qdrops++;
return (ENOBUFS);
}
More information about the svn-src-all
mailing list