From owner-freebsd-current@FreeBSD.ORG Thu Feb 16 18:53:00 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D7A0106564A; Thu, 16 Feb 2012 18:53:00 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe006.messaging.microsoft.com [216.32.181.186]) by mx1.freebsd.org (Postfix) with ESMTP id D2B2D8FC13; Thu, 16 Feb 2012 18:52:59 +0000 (UTC) Received: from mail77-ch1-R.bigfish.com (10.43.68.236) by CH1EHSOBE010.bigfish.com (10.43.70.60) with Microsoft SMTP Server id 14.1.225.23; Thu, 16 Feb 2012 18:22:56 +0000 Received: from mail77-ch1 (localhost [127.0.0.1]) by mail77-ch1-R.bigfish.com (Postfix) with ESMTP id 815A1420435; Thu, 16 Feb 2012 18:22:56 +0000 (UTC) X-SpamScore: -6 X-BigFish: VPS-6(zz14ffOzz1202hzzz2ei2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:198.70.193.64; KIP:(null); UIP:(null); IPV:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI Received-SPF: neutral (mail77-ch1: 198.70.193.64 is neither permitted nor denied by domain of qlogic.com) client-ip=198.70.193.64; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail77-ch1 (localhost.localdomain [127.0.0.1]) by mail77-ch1 (MessageSwitch) id 1329416573663323_30680; Thu, 16 Feb 2012 18:22:53 +0000 (UTC) Received: from CH1EHSMHS022.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.225]) by mail77-ch1.bigfish.com (Postfix) with ESMTP id 9C62C2C004D; Thu, 16 Feb 2012 18:22:53 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by CH1EHSMHS022.bigfish.com (10.43.70.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 16 Feb 2012 18:22:52 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Thu, 16 Feb 2012 10:22:52 -0800 From: David Somayajulu To: "freebsd-current@freebsd.org" , "freebsd-drivers@freebsd.org" Date: Thu, 16 Feb 2012 10:22:51 -0800 Thread-Topic: Question on TSO/LSO Transmit Frames Thread-Index: Aczs1/uBFJtVbnzqQdqqt37K0ZitDQ== Message-ID: <75E1A2A7D185F841A975979B0906BBA67C79BD85F7@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Cc: Subject: Question on TSO/LSO Transmit Frames X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 18:53:00 -0000 Hi All, Is it safe to assume that when a driver receives an Ethernet frame to trans= mit with CSUM_TSO bit set in m_head->m_pkthdr.csum_flags ; where m_head is the first (struct mbuf) in t= he mbuf chain that the [Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der] are all present in one physically contiguous segment ? In other words is Size of ([Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der]) <=3D m_head->m_len When ((m_head->m_pkthdr.csum_flags & CSUM_TSO) !=3D 0) Thanks David S. This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message.