vio(4) Large MTU support

2012-11-01 Thread Stefan Fritsch
Hi, here is a patch to support large MTUs in if_vio. It adds support for the VIRTIO_NET_F_MRG_RXBUF feature, i.e. allows to chain several rx buffers when receiving large packets. To make this work, it has to put the rx meta data headers at the beginning of the mbuf cluster instead of dedicated

Re: Small memcpy optimization

2012-11-01 Thread Stefan Fritsch
On Tuesday 21 August 2012, Stefan Fritsch wrote: On x86, the xchg operation between reg and mem has an implicit lock prefix, i.e. it is a relatively expensive atomic operation. This is not needed here. OKs, anyone? --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@