Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_ddp.c
Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Lines | if (sb->sb_flags & SB_AUTOSIZE && | ||||
V_tcp_do_autorcvbuf && | V_tcp_do_autorcvbuf && | ||||
sb->sb_hiwat < V_tcp_autorcvbuf_max && | sb->sb_hiwat < V_tcp_autorcvbuf_max && | ||||
len > (sbspace(sb) / 8 * 7)) { | len > (sbspace(sb) / 8 * 7)) { | ||||
struct adapter *sc = td_adapter(toep->td); | struct adapter *sc = td_adapter(toep->td); | ||||
unsigned int hiwat = sb->sb_hiwat; | unsigned int hiwat = sb->sb_hiwat; | ||||
unsigned int newsize = min(hiwat + sc->tt.autorcvbuf_inc, | unsigned int newsize = min(hiwat + sc->tt.autorcvbuf_inc, | ||||
V_tcp_autorcvbuf_max); | V_tcp_autorcvbuf_max); | ||||
if (!sbreserve_locked(sb, newsize, so, NULL)) | if (!sbreserve_locked(so, SO_RCV, newsize, NULL)) | ||||
sb->sb_flags &= ~SB_AUTOSIZE; | sb->sb_flags &= ~SB_AUTOSIZE; | ||||
} | } | ||||
SOCKBUF_UNLOCK(sb); | SOCKBUF_UNLOCK(sb); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
job->msgrcv = 1; | job->msgrcv = 1; | ||||
if (db->cancel_pending) { | if (db->cancel_pending) { | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 1,696 Lines • Show Last 20 Lines |