Hans Petter Selasky wrote:
[stuff snipped for brevity]
> > Btw, your patch calls sbsndptr() in tcp_output(), which advances
> > sb_sndptroff and sb_sndptr by the length.
> > Then it loops around and reduces the length for the case where
> > there are too many mbufs in the chain.
> >
> 
> Right, though this patch would need to understand segment lengths too 
> and not only count them.
Yep. I didn't mean that you would want to use the patch, I was just suggesting
that you might want to consider doing something like sbsnfmbuf() so that
sb_sndptroff and sb_sndptr aren't being advanced in your patch.

All I did to make sbsndmbuf() was clone sbsndptr(), then take out the
code that updated sb_sndptroff and sb_sndptr plus add a little bit that
I found useful for my patch.

As an aside, although allowing specification of a limit for segment size
sounds like a good plan, I am not aware of hardware that can't handle
a large segment?

Good luck with it, rick
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to