freebsd-dev/sys/dev/cxgbe/tom
John Baldwin 91a65e2f6b Avoid reusing the wrong buffer for a DDP AIO request.
To optimize the case of ping-ponging between two buffers, the DDP code
caches the last two buffers used keeping the pages wired and page pods
stored in the NIC's RAM.  If a new aio_read() request uses one of the
same buffers, then the work of holding pages, etc. can be avoided.
However, the starting virtual address of an aio buffer was not saved,
only the page count, length, and initial page offset.  Thus, an
aio_read() request could match a different buffer in the address
space.  (Earlier during development vm_fault_hold_quick_pages() was
always called and the vm_page_t values were compared, but that was
eventually removed without being adequately replaced.)  Fix by storing
the starting virtual address and comparing that (along with other
fields) to determine if a buffer can be reused.

MFC after:	3 days
Sponsored by:	Chelsio Communications
2017-09-15 22:40:57 +00:00
..
t4_connect.c cxgbe/t4_tom: Add a knob to select the congestion control algorigthm 2017-08-31 20:33:22 +00:00
t4_cpl_io.c cxgbe/t4_tom: Log more details about the newly ESTABLISHED tid to the 2017-07-19 01:49:01 +00:00
t4_ddp.c Avoid reusing the wrong buffer for a DDP AIO request. 2017-09-15 22:40:57 +00:00
t4_listen.c cxgbe/t4_tom: Add a knob to select the congestion control algorigthm 2017-08-31 20:33:22 +00:00
t4_tom_l2t.c cxgbe(4): Changes to the CPL-handler registration mechanism and code 2016-07-05 01:29:24 +00:00
t4_tom_l2t.h cxgbe(4): Changes to the CPL-handler registration mechanism and code 2016-07-05 01:29:24 +00:00
t4_tom.c cxgbe/t4_tom: There may not be a tid to update if the connection isn't 2017-08-31 23:34:08 +00:00
t4_tom.h Avoid reusing the wrong buffer for a DDP AIO request. 2017-09-15 22:40:57 +00:00