opnsense-src/sys/dev/cxgbe
John Baldwin ae0b1ccbab 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
2016-06-15 21:08:51 +00:00
..
common sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
cxgbei Reduce the priority of cxgbei(4) driver, so it doesn't get chosen 2016-06-01 12:04:04 +00:00
firmware cxgbe(4): Update T5 and T4 firmwares to 1.15.37.0. 2016-05-13 17:38:59 +00:00
iw_cxgbe iw_cxgbe: Make sure that send_abort results in a TCP RST and not a FIN. 2016-06-14 21:02:36 +00:00
tom Use sbused() instead of sbspace() to avoid signed issues. 2016-06-15 21:08:51 +00:00
adapter.h cxgbe(4): Add a sysctl to manage the binding of a txq to a traffic class. 2016-06-08 14:15:29 +00:00
if_cxl.c cxgbe(4): Add a minimal if_cxl module that pulls in the real driver as 2015-02-06 01:10:04 +00:00
offload.h Use DDP to implement zerocopy TCP receive with aio_read(). 2016-05-07 00:33:35 +00:00
osdep.h cxgbe(4): Remove __devinit and SPEED_<foo> as part of catch up with 2016-03-08 08:13:37 +00:00
t4_ioctl.h cxgbe(4): Create a reusable struct type for scheduling class parameters. 2016-06-06 20:42:46 +00:00
t4_l2t.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
t4_l2t.h cxgbe(4): Updates to the hardware L2 table management code. 2013-01-14 20:36:22 +00:00
t4_main.c cxgbe(4): A couple of fixes to set_sched_queue. 2016-06-07 07:48:36 +00:00
t4_mp_ring.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
t4_mp_ring.h cxgbe(4): major tx rework. 2014-12-31 23:19:16 +00:00
t4_netmap.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
t4_sge.c cxgbe(4): Add a sysctl to manage the binding of a txq to a traffic class. 2016-06-08 14:15:29 +00:00
t4_tracer.c cxgbe(4): Remove stray if_up from the code that creates the tracing ifnet. 2014-05-23 01:45:44 +00:00