From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27999 invoked by alias); 7 Jun 2011 00:14:18 -0000 Received: (qmail 27990 invoked by uid 22791); 7 Jun 2011 00:14:16 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,MIME_QP_LONG_LINE,RCVD_IN_SORBS_WEB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from netic.com (HELO netic.com) (208.131.130.247) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jun 2011 00:14:03 +0000 Received: from [10.128.176.189] ([202.81.69.153]) by netic.com (8.13.1/8.13.1) with ESMTP id p570Drb7032522; Mon, 6 Jun 2011 18:13:56 -0600 References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8J2) Content-Type: text/plain; charset=us-ascii Message-Id: <1478E21E-D36A-4451-9F69-0042CBF57E91@netic.com> Content-Transfer-Encoding: quoted-printable Cc: "ecos-discuss@sources.redhat.com" From: Laurie Gellatly Date: Tue, 07 Jun 2011 00:14:00 -0000 To: Grant Edwards X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to use IP/UDP/TCP checksum offload HW? X-SW-Source: 2011-06/txt/msg00028.txt.bz2 Hi Grant, I tried to enable this before without success. I agree that its a waste of = processor time when it can be performed in hardware. Must we look at the la= test BSD code to see how to implement this? ...Laurie:{) On 07/06/2011, at 5:34 AM, Grant Edwards wrote: > How do you tell the eCos network API that IP/TCP/UDP checksumming is > handled by hardware? I've found the if_data.ifi_hwassist field, but > I'm not positive it really does what I want, and it only seems to > affect the tx side of the stack. >=20 > Does if_data.ifi_hwassist tell ip_output.c to skil checkums in tx > packets and let the hardware do it? >=20 > How do you tell the rx side of the stack that it doesn't need to check > IP, UDP, and TCP checksums (the hardware will discard any packets with > invalid checksums). >=20 > It seems a shame to not support for HW checksum offloading when it's > gotten to the point where even a $4 uController has IP checksum > offloading HW. >=20 > --=20 > Grant Edwards grant.b.edwards Yow! Eisenhower!! Your > at mimeograph machine upse= ts > gmail.com my stomach!! >=20 >=20 > --=20 > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss >=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss