From owner-freebsd-stable@FreeBSD.ORG Tue Apr 13 12:18:00 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 740981065672 for ; Tue, 13 Apr 2010 12:18:00 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.221.175]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3A88FC18 for ; Tue, 13 Apr 2010 12:17:59 +0000 (UTC) Received: by qyk5 with SMTP id 5so7674865qyk.3 for ; Tue, 13 Apr 2010 05:17:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.231.84 with HTTP; Tue, 13 Apr 2010 05:17:57 -0700 (PDT) X-Originating-IP: [59.124.10.59] Date: Tue, 13 Apr 2010 20:17:57 +0800 Received: by 10.229.230.84 with SMTP id jl20mr8170215qcb.88.1271161077076; Tue, 13 Apr 2010 05:17:57 -0700 (PDT) Message-ID: From: Lin Jui-Nan Eric To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: pf stalls connection when using route-to X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 12:18:00 -0000 Hi listers, We recently found that when the traffic passes pf with route-to, the connection stalls. Turning off TSO solves the problem. Our pf.conf is very simple: table const {10/8, 172.16/12, 192.168/16} pass out quick route-to (em0 10.1.1.1) from to ! no state And we have a tcpdump capture file. It shows that there's lots of duplicate packets and retransmissions while TSO is enabled. Our NIC is an Intel PRO/1000: em0: port 0x2000-0x201f mem 0xdf200000-0xdf21ffff irq 18 at device 0.0 on pci4 em0: Using MSI interrupt em0: [FILTER] Screenshot: http://cf.files.jnlin.org/with-tso.png Any suggestion? I just turn off the TSO, but I think it is only a workaround. Sincerely, Jui-Nan