Searched hist:301932 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.cdiff 301932 Wed Jun 15 19:18:16 MDT 2016 jhb Use sbused() instead of sbspace() to avoid signed issues.

Inserting a full mbuf with an external cluster into the socket buffer
resulted in sbspace() returning -MLEN. However, since sb_hiwat is
unsigned, the -MLEN value was converted to unsigned in comparisons. As a
result, the socket buffer was never autosized. Note that sb_lowat is signed
to permit direct comparisons with sbspace(), but sb_hiwat is unsigned.
Follow suit with what tcp_output() does and compare the value of sbused()
with sb_hiwat instead.

Approved by: re (gjb)
Sponsored by: Chelsio Communications

Completed in 187 milliseconds