Re: Rx/tx hardware checksumming statistics?

2008-08-12 Thread Christian Weisgerber
Pyun YongHyeon [EMAIL PROTECTED] wrote: OpenBSD's re(4) driver is ported from FreeBSD. Recently, Brad Smith has been merging the tx/rx checksum offload support for the newer chips (RTL8111C etc.) into the OpenBSD driver and I have done some testing for him. Looking at the counters,

Re: Rx/tx hardware checksumming statistics?

2008-08-12 Thread Christian Weisgerber
Christian Weisgerber [EMAIL PROTECTED] wrote: OpenBSD's re(4) driver is ported from FreeBSD. [...] * If VLAN tagging is enabled, no rx checksumming is registered at all. For the record, this is in fact due to a difference in the OpenBSD driver, i.e., it does not apply to FreeBSD. OpenBSD

Re: Rx/tx hardware checksumming statistics?

2008-08-12 Thread Pyun YongHyeon
On Tue, Aug 12, 2008 at 03:33:14PM +, Christian Weisgerber wrote: Pyun YongHyeon [EMAIL PROTECTED] wrote: OpenBSD's re(4) driver is ported from FreeBSD. Recently, Brad Smith has been merging the tx/rx checksum offload support for the newer chips (RTL8111C etc.) into the

Re: Rx/tx hardware checksumming statistics?

2008-08-11 Thread Christian Weisgerber
Pyun YongHyeon [EMAIL PROTECTED] wrote: I don't think it indicates whether checksum offloading actually works as OpenBSD blindly set a flag, which was derived from hardware, to indicate hardware performed the checksum computation. Yes. It counts the instances where the network stack assumes

Re: Rx/tx hardware checksumming statistics?

2008-08-11 Thread Andrew Snow
Are there any NIC hardware counters that FreeBSD could be taking advantage of or displaying? ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Rx/tx hardware checksumming statistics?

2008-08-11 Thread Pyun YongHyeon
On Mon, Aug 11, 2008 at 12:22:33PM +, Christian Weisgerber wrote: Pyun YongHyeon [EMAIL PROTECTED] wrote: I don't think it indicates whether checksum offloading actually works as OpenBSD blindly set a flag, which was derived from hardware, to indicate hardware performed the

Re: Rx/tx hardware checksumming statistics?

2008-08-11 Thread Pyun YongHyeon
On Tue, Aug 12, 2008 at 08:32:52AM +1000, Andrew Snow wrote: Are there any NIC hardware counters that FreeBSD could be taking advantage of or displaying? It depends on device driver. Some drivers access hardware counters maintained by MAC and can display these counters with sysctl(8).

Re: Rx/tx hardware checksumming statistics?

2008-08-10 Thread Pyun YongHyeon
On Sat, Aug 09, 2008 at 08:12:42PM +, Christian Weisgerber wrote: 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

Rx/tx hardware checksumming statistics?

2008-08-09 Thread Christian Weisgerber
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