Kacheong Poon wrote: > Darren Reed wrote: > >> One might be tempted to do away with "from_len" and make "from" a >> sockaddr_storage (not a pointer.) >> > > > The size of sockaddr_storage is not that small. Given > that the purpose is for performance optimization, I'd > say it is not that efficient to use sockaddr_storage. >
As it is, the API is passing through a pointer to the kernel, so there is no impact of the size there. The kernel then needs to translate that pointer into something usable. Rather than copy the structure into the kernel, maybe it is better to map the array into the kernel address space, somehow, so that it is possible for the kernel to just look at the array directly rather than use uiomove. Remember, we're performance orientated here... It may be that it needs to happen the other way - ask the kernel for some memory in the process address space that can be accessed in both directions. This would tend to suggest that the programming model becomes a little bit more complex than just a couple of new system calls but again, we want fast in the loop... Darren _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org