Deleted Added
full compact
tcp_lro.c (255010) tcp_lro.c (284961)
1/*-
2 * Copyright (c) 2007, Myricom Inc.
3 * Copyright (c) 2008, Intel Corporation.
4 * Copyright (c) 2012 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Bjoern Zeeb
8 * under sponsorship from the FreeBSD Foundation.

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007, Myricom Inc.
3 * Copyright (c) 2008, Intel Corporation.
4 * Copyright (c) 2012 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Bjoern Zeeb
8 * under sponsorship from the FreeBSD Foundation.

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_lro.c 255010 2013-08-28 23:00:34Z np $");
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_lro.c 284961 2015-06-30 17:19:58Z np $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/mbuf.h>
41#include <sys/kernel.h>

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

545 le->p_len += tcp_data_len;
546
547 /*
548 * Adjust the mbuf so that m_data points to the first byte of
549 * the ULP payload. Adjust the mbuf to avoid complications and
550 * append new segment to existing mbuf chain.
551 */
552 m_adj(m, m->m_pkthdr.len - tcp_data_len);
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/mbuf.h>
41#include <sys/kernel.h>

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

545 le->p_len += tcp_data_len;
546
547 /*
548 * Adjust the mbuf so that m_data points to the first byte of
549 * the ULP payload. Adjust the mbuf to avoid complications and
550 * append new segment to existing mbuf chain.
551 */
552 m_adj(m, m->m_pkthdr.len - tcp_data_len);
553 m->m_flags &= ~M_PKTHDR;
553 m_demote_pkthdr(m);
554
555 le->m_tail->m_next = m;
556 le->m_tail = m_last(m);
557
558 /*
559 * If a possible next full length packet would cause an
560 * overflow, pro-actively flush now.
561 */

--- 75 unchanged lines hidden ---
554
555 le->m_tail->m_next = m;
556 le->m_tail = m_last(m);
557
558 /*
559 * If a possible next full length packet would cause an
560 * overflow, pro-actively flush now.
561 */

--- 75 unchanged lines hidden ---