tom60 wrote:
Our NIC is 10Gb/s, should we use zero copy? The pre-allocated tx buffer has limited size, so, copying packet to pre-allocated tx buffer works only for smaller packets. Our tx buffer size is set to 512 bytes, any packet bigger than that will be transmitted using zero copy (DMA binding) mode. Is this good? What is the best tx strategy for our 10G driver? Is there any good 10g driver for us to refer?
You'll need to benchmark to find the best copy <-> no-copy threshold. It will largely depend on what DMA setup costs a no-copy send incurs on the host (unless you run into scatter-gather limitations on your h/w). FWIW I opted not to copy into pre-mapped buffers with a threshold of 512 bytes. My driver is not yet integrated but you can see it at http://cr.opensolaris.org/~pdurrant/
Paul -- =================================== Paul Durrant http://www.linkedin.com/in/pdurrant =================================== _______________________________________________ driver-discuss mailing list driver-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/driver-discuss