From owner-freebsd-net@FreeBSD.ORG Wed Feb 24 08:40:04 2010 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2490B106566B for ; Wed, 24 Feb 2010 08:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ED3388FC13 for ; Wed, 24 Feb 2010 08:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1O8e3IQ055986 for ; Wed, 24 Feb 2010 08:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1O8e3d7055985; Wed, 24 Feb 2010 08:40:03 GMT (envelope-from gnats) Date: Wed, 24 Feb 2010 08:40:03 GMT Message-Id: <201002240840.o1O8e3d7055985@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Jean-Luc Richier Cc: Subject: Re: kern/141843: [em] [vlan] Intel txcsum and assigned vlan invoke wrong dst MAC in TCP packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jean-Luc Richier List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 08:40:04 -0000 The following reply was made to PR kern/141843; it has been noted by GNATS. From: Jean-Luc Richier To: bug-followup@FreeBSD.org, dyr@smartspb.net Cc: Subject: Re: kern/141843: [em] [vlan] Intel txcsum and assigned vlan invoke wrong dst MAC in TCP packets Date: Wed, 24 Feb 2010 09:19:29 +0100 A other cause (or the same) seems that when the interface is reset (for example with a ifconfig em0 down, the chip is reset, but the last_hw_offload in the interface context is not reset I just had the following problem in FreeBSD8.0 RELEASE # ping www.google.com It works # ifconfig em0 down up # ping www.google.com It does not work # telnet -N Normal error message # ping www.google.com It works I made the following path to solve the problem (in em_stop): --- /sys/dev/e1000/if_em.c.DIST 2009-10-25 02:10:29.000000000 +0100 +++ /sys/dev/e1000/if_em.c 2010-02-23 18:22:53.000000000 +0100 @@ -2710,6 +2710,7 @@ ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); e1000_reset_hw(&adapter->hw); + adapter->last_hw_offload = 0; if (adapter->hw.mac.type >= e1000_82544) E1000_WRITE_REG(&adapter->hw, E1000_WUC, 0); } -- Jean-Luc RICHIER (Jean-Luc.Richier@Imag.Fr) Laboratoire d'Informatique de Grenoble (LIG) Campus de Grenoble 681 rue de la Passerelle BP 72, F-38402 St Martin d'Hères Cedex Tel : +33 4 76 82 72 32 Fax : +33 4 76 82 72 87