From owner-svn-src-all@FreeBSD.ORG Thu Apr 7 21:20:26 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CCAE1065680; Thu, 7 Apr 2011 21:20:26 +0000 (UTC) (envelope-from jfv@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA388FC16; Thu, 7 Apr 2011 21:20:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p37LKQg6052229; Thu, 7 Apr 2011 21:20:26 GMT (envelope-from jfv@svn.freebsd.org) Received: (from jfv@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p37LKQfi052227; Thu, 7 Apr 2011 21:20:26 GMT (envelope-from jfv@svn.freebsd.org) Message-Id: <201104072120.p37LKQfi052227@svn.freebsd.org> From: Jack F Vogel Date: Thu, 7 Apr 2011 21:20:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220428 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2011 21:20:26 -0000 Author: jfv Date: Thu Apr 7 21:20:26 2011 New Revision: 220428 URL: http://svn.freebsd.org/changeset/base/220428 Log: Port of the LRO fix from mxge driver to the generic LRO code. Thanks to Andrew Gallatin for the change. MFC after: 7 days Modified: head/sys/netinet/tcp_lro.c Modified: head/sys/netinet/tcp_lro.c ============================================================================== --- head/sys/netinet/tcp_lro.c Thu Apr 7 20:15:36 2011 (r220427) +++ head/sys/netinet/tcp_lro.c Thu Apr 7 21:20:26 2011 (r220428) @@ -279,8 +279,10 @@ tcp_lro_rx(struct lro_ctrl *cntl, struct lro->dest_ip == ip->ip_dst.s_addr) { /* Try to append it */ - if (__predict_false(seq != lro->next_seq)) { - /* out of order packet */ + if (__predict_false(seq != lro->next_seq || + (tcp_data_len == 0 && + lro->ack_seq == tcp->th_ack))) { + /* out of order packet or dup ack */ SLIST_REMOVE(&cntl->lro_active, lro, lro_entry, next); tcp_lro_flush(cntl, lro);