diff options
author | alc <alc@FreeBSD.org> | 2004-12-10 04:49:13 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-12-10 04:49:13 +0000 |
commit | 72abac0bd257670af7f2c2454b5ffcf0e84de99c (patch) | |
tree | 0a7784c8b8ab8f31a5b65c23df4d72f126b8c6c2 | |
parent | 37a87b6214468a4caf40d3ed2601ff26aa70efa7 (diff) | |
download | FreeBSD-src-72abac0bd257670af7f2c2454b5ffcf0e84de99c.zip FreeBSD-src-72abac0bd257670af7f2c2454b5ffcf0e84de99c.tar.gz |
Remove unneeded code from the zero-copy receive path.
Discussed with: gallatin@
Tested by: ken@
-rw-r--r-- | sys/kern/uipc_socket.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 7982dea..8b04ec6 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -887,7 +887,6 @@ soreceive_rcvoob(so, uio, flags) do { #ifdef ZERO_COPY_SOCKETS if (so_zero_copy_receive) { - vm_page_t pg; int disposable; if ((m->m_flags & M_EXT) @@ -896,10 +895,6 @@ soreceive_rcvoob(so, uio, flags) else disposable = 0; - pg = PHYS_TO_VM_PAGE(vtophys(mtod(m, caddr_t))); - if (uio->uio_offset == -1) - uio->uio_offset =IDX_TO_OFF(pg->pindex); - error = uiomoveco(mtod(m, void *), min(uio->uio_resid, m->m_len), uio, disposable); @@ -1229,7 +1224,6 @@ dontblock: SOCKBUF_UNLOCK(&so->so_rcv); #ifdef ZERO_COPY_SOCKETS if (so_zero_copy_receive) { - vm_page_t pg; int disposable; if ((m->m_flags & M_EXT) @@ -1238,12 +1232,6 @@ dontblock: else disposable = 0; - pg = PHYS_TO_VM_PAGE(vtophys(mtod(m, caddr_t) + - moff)); - - if (uio->uio_offset == -1) - uio->uio_offset =IDX_TO_OFF(pg->pindex); - error = uiomoveco(mtod(m, char *) + moff, (int)len, uio, disposable); |