]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r264348 by mav@:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 May 2014 07:53:24 +0000 (07:53 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 May 2014 07:53:24 +0000 (07:53 +0000)
commit4ad3fd891b3ec28f9f51e64a02b0396fcef063ae
tree03898de1f899cbff45717b89156bf1f0ae801b41
parentaf3578961dab8300dad719d53f312667d40a6e79
MFC r264348 by mav@:

Improve use of socket buffer upcalls.

Use soreadable()/sowriteable() in socket upcalls to avoid extra wakeups
until we have enough data to read or space to write.

Increase partial receive len from 1K to 128K to not wake up on every
received packet.

This significantly reduces locks congestion and CPU usage and improves
throughput for large I/Os on NICs without TSO and LRO.

MFC r264552 by mav@:

Close the race in older code, that caused connection stuck after r264348.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@265524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/iscsi/icl.c