From owner-freebsd-net@FreeBSD.ORG Sat Aug 9 20:47:43 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200661065689 for ; Sat, 9 Aug 2008 20:47:43 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-16.arcor-online.net (mail-in-16.arcor-online.net [151.189.21.56]) by mx1.freebsd.org (Postfix) with ESMTP id C68008FC19 for ; Sat, 9 Aug 2008 20:47:42 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mail-in-16.arcor-online.net (Postfix) with ESMTP id C99DE1F7226 for ; Sat, 9 Aug 2008 22:12:43 +0200 (CEST) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id B4CDB100F6 for ; Sat, 9 Aug 2008 22:12:43 +0200 (CEST) Received: from lorvorc.mips.inka.de (dslb-088-067-112-132.pools.arcor-ip.net [88.67.112.132]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 9579835E731 for ; Sat, 9 Aug 2008 22:12:43 +0200 (CEST) Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.2/8.14.2) with ESMTP id m79KCgQo017300 for ; Sat, 9 Aug 2008 22:12:42 +0200 (CEST) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.2/8.14.2/Submit) id m79KCgIe017299 for freebsd-net@freebsd.org; Sat, 9 Aug 2008 22:12:42 +0200 (CEST) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Sat, 9 Aug 2008 20:12:42 +0000 (UTC) Message-ID: Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-net@freebsd.org X-Virus-Scanned: ClamAV 0.93.3/7995/Sat Aug 9 20:55:20 2008 on mail-in-06.arcor-online.net X-Virus-Status: Clean Subject: Rx/tx hardware checksumming statistics? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 20:47:43 -0000 OpenBSD keeps count of the packets that have undergone IPv4 header/ TCP/UDP checksumming in hardware. These statics are available with netstat -s, e.g.: ip: ... 492152 input datagrams checksum-processed by hardware 911338 output datagrams checksum-processed by hardware ... This comes in quite handy to check whether checksum offloading actually works and which protocols are successfully processed this way. On FreeBSD, netstat -s does not provide this information. Are these statistics available in some other way? How would I check whether packets have actually been checksummed in hardware? -- Christian "naddy" Weisgerber naddy@mips.inka.de