From owner-svn-src-head@FreeBSD.ORG Thu Apr 7 13:49:45 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 006281065672; Thu, 7 Apr 2011 13:49:44 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E390B8FC16; Thu, 7 Apr 2011 13:49:44 +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 p37DniZ7042353; Thu, 7 Apr 2011 13:49:44 GMT (envelope-from gallatin@svn.freebsd.org) Received: (from gallatin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p37DniKc042351; Thu, 7 Apr 2011 13:49:44 GMT (envelope-from gallatin@svn.freebsd.org) Message-Id: <201104071349.p37DniKc042351@svn.freebsd.org> From: Andrew Gallatin Date: Thu, 7 Apr 2011 13:49:44 +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: r220424 - head/sys/dev/mxge X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2011 13:49:45 -0000 Author: gallatin Date: Thu Apr 7 13:49:44 2011 New Revision: 220424 URL: http://svn.freebsd.org/changeset/base/220424 Log: Fix a bug in mxge's LRO which can cause dup acks to get aggregated & hence prevent TCP from entering fast retransmit. Pointed out by: jeff Reviewed by: gnn MFC after: 7 days Modified: head/sys/dev/mxge/mxge_lro.c Modified: head/sys/dev/mxge/mxge_lro.c ============================================================================== --- head/sys/dev/mxge/mxge_lro.c Thu Apr 7 13:14:51 2011 (r220423) +++ head/sys/dev/mxge/mxge_lro.c Thu Apr 7 13:49:44 2011 (r220424) @@ -237,8 +237,10 @@ mxge_lro_rx(struct mxge_slice_state *ss, 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(&ss->lro_active, lro, lro_entry, next); mxge_lro_flush(ss, lro);