From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28028 invoked by alias); 6 Jun 2011 19:35:04 -0000 Received: (qmail 27823 invoked by uid 22791); 6 Jun 2011 19:35:04 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jun 2011 19:34:49 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QTfZW-00025A-VU for ecos-discuss@sources.redhat.com; Mon, 06 Jun 2011 21:34:46 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2011 21:34:46 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2011 21:34:46 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Mon, 06 Jun 2011 19:35:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) 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: [ECOS] How to use IP/UDP/TCP checksum offload HW? X-SW-Source: 2011-06/txt/msg00027.txt.bz2 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. Does if_data.ifi_hwassist tell ip_output.c to skil checkums in tx packets and let the hardware do it? 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). 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. -- Grant Edwards grant.b.edwards Yow! Eisenhower!! Your at mimeograph machine upsets gmail.com my stomach!! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss