diff --git a/sys/netinet/tcp_lro.h b/sys/netinet/tcp_lro.h --- a/sys/netinet/tcp_lro.h +++ b/sys/netinet/tcp_lro.h @@ -3,7 +3,7 @@ * * Copyright (c) 2006, Myricom Inc. * Copyright (c) 2008, Intel Corporation. - * Copyright (c) 2016 Mellanox Technologies. + * Copyright (c) 2016-2021 Mellanox Technologies. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -69,7 +69,6 @@ struct mbuf *m_head; struct mbuf *m_tail; struct mbuf *m_last_mbuf; - struct mbuf *m_prev_last; struct inpcb *inp; union { struct ip *ip4; diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c --- a/sys/netinet/tcp_lro.c +++ b/sys/netinet/tcp_lro.c @@ -4,7 +4,7 @@ * Copyright (c) 2007, Myricom Inc. * Copyright (c) 2008, Intel Corporation. * Copyright (c) 2012 The FreeBSD Foundation - * Copyright (c) 2016 Mellanox Technologies. + * Copyright (c) 2016-2021 Mellanox Technologies. * All rights reserved. * * Portions of this software were developed by Bjoern Zeeb @@ -1863,9 +1863,7 @@ le->m_head = m; le->m_tail = m_last(m); le->m_last_mbuf = m; - le->m_prev_last = NULL; } else { - le->m_prev_last = le->m_last_mbuf; /* Mark me in the last spot */ le->m_last_mbuf->m_nextpkt = m; /* Now set the tail to me */ @@ -2005,7 +2003,6 @@ le->m_head = NULL; le->m_tail = NULL; le->m_last_mbuf = NULL; - le->m_prev_last = NULL; INP_WUNLOCK(le->inp); return (0); } else { @@ -2042,7 +2039,6 @@ le->m_head = m; le->m_tail = m_last(m); le->m_last_mbuf = m; - le->m_prev_last = NULL; /* * We keep the total size here for cross checking when we may need * to flush/wakeup in the MBUF_QUEUE case.