From: Herbert Xu <herbert@gondor.apana.org.au> Date: Thu, 31 Jul 2008 21:27:35 +0800I took a brief look into this, and yes NIU would benefit a lot from what the sfc driver is doing and using sw GSO in general. I think that, in order to work out, the driver has to provide a pool of DMA buffers to use in some generic fashion. It seems likely that it's best to give the driver the largest amount of flexibility wrt. the DMA bits. There are two reasonable ways for them to implement a header buffer pool: 1) A big coherent DMA block that gets chopped up into fixed size pieces. 2) A free list of kmalloc() buffers that get DMA mapped dynamically (because such dynamic DMA mappings transfer faster than coherent ones on some systems). But anyways, we don't want to be in the business of enforcing one way or the other in whatever interface we come up with. So likely what we'll do is have the driver say it can do hw TSO and then at ->hard_start_xmit() time it calls into the sw GSO engine, passing header buffers in along the way. I would start hacking on this beast but I haven't yet come up with a clean way to share a lot of code with the existing sw GSO engine. That's the key to implementing this properly. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg KH | [patch 02/49] x86: add DMI quirk for AMI BIOS which corrupts address 0xc000 during... |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
git: | |
| David Miller | Re: 2.6.25-rc8: FTP transfer errors |
| Joakim Tjernlund | ucc_geth: nf_conntrack: table full, dropping packet. |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
