From owner-freebsd-net@FreeBSD.ORG Mon Jan 11 09:30:05 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 A25AD1065670 for ; Mon, 11 Jan 2010 09:30:05 +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 911E18FC15 for ; Mon, 11 Jan 2010 09:30:05 +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 o0B9U59o043699 for ; Mon, 11 Jan 2010 09:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0B9U58E043690; Mon, 11 Jan 2010 09:30:05 GMT (envelope-from gnats) Date: Mon, 11 Jan 2010 09:30:05 GMT Message-Id: <201001110930.o0B9U58E043690@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Dennis Yusupoff 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: Dennis Yusupoff List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 09:30:05 -0000 The following reply was made to PR kern/141843; it has been noted by GNATS. From: Dennis Yusupoff To: pyunyh@gmail.com, bug-followup@FreeBSD.org Cc: Subject: Re: kern/141843: [em] [vlan] Intel txcsum and assigned vlan invoke wrong dst MAC in TCP packets Date: Mon, 11 Jan 2010 12:20:46 +0300 30.12.2009 23:20, Pyun YongHyeon пишет: > > Sorry, that wasn't expected one. From your explanation above I > think I found a possible cause of checksum offload issue of em(4). > The issue was not I initially thought though. It seems the checksum > offload context configured in em(4) was incorrectly reused even if > a frame requires a new context as IP/TCP header length, checksum > offload offset was changed. Setting up new context put more burden > to hardware such that em(4) used to avoid new context setup as > possible as it can. However it seems em(4) failed to compare all > required field in the checksum offload context. Would you try the > following patch again? > > http://people.freebsd.org/~yongari/em.csum_tso.20091230.patch Gotcha! It works! --- With best regards, Dennis Yusupoff, network engineer of Smart-Telecom ISP Russia, Saint-Petersburg