Deleted Added
full compact
cxgb_cpl_io.c (274421) cxgb_cpl_io.c (275329)
1/*-
2 * Copyright (c) 2012 Chelsio Communications, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 Chelsio Communications, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c 274421 2014-11-12 09:57:15Z glebius $");
28__FBSDID("$FreeBSD: head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c 275329 2014-11-30 13:24:21Z glebius $");
29
30#include "opt_inet.h"
31
32#ifdef TCP_OFFLOAD
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/fcntl.h>
36#include <sys/kernel.h>

--- 1157 unchanged lines hidden (view full) ---

1194
1195 if (!sbreserve_locked(so_rcv, newsize, so, NULL))
1196 so_rcv->sb_flags &= ~SB_AUTOSIZE;
1197 else
1198 toep->tp_rx_credits += newsize - hiwat;
1199 }
1200
1201 toep->tp_enqueued += m->m_pkthdr.len;
29
30#include "opt_inet.h"
31
32#ifdef TCP_OFFLOAD
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/fcntl.h>
36#include <sys/kernel.h>

--- 1157 unchanged lines hidden (view full) ---

1194
1195 if (!sbreserve_locked(so_rcv, newsize, so, NULL))
1196 so_rcv->sb_flags &= ~SB_AUTOSIZE;
1197 else
1198 toep->tp_rx_credits += newsize - hiwat;
1199 }
1200
1201 toep->tp_enqueued += m->m_pkthdr.len;
1202 sbappendstream_locked(so_rcv, m);
1202 sbappendstream_locked(so_rcv, m, 0);
1203 sorwakeup_locked(so);
1204 SOCKBUF_UNLOCK_ASSERT(so_rcv);
1205
1206 INP_WUNLOCK(inp);
1207 return (0);
1208}
1209
1210/*

--- 603 unchanged lines hidden ---
1203 sorwakeup_locked(so);
1204 SOCKBUF_UNLOCK_ASSERT(so_rcv);
1205
1206 INP_WUNLOCK(inp);
1207 return (0);
1208}
1209
1210/*

--- 603 unchanged lines hidden ---