1. define 'fragmented enough'
2. the packet size was already negotiated on your existing connections,
how are you going to change all those on the fly?
3. what do you do when a remote system sends you a large packet? drop it
on the floor?
having some pool of large buffers to receive into (and copy out of those
buffers as quickly as possible) would cause a performance hit when things
get bad, but isn't that better than dropping packets?
as for the number of buffers to use. make a reasonable guess. if you only
have a small number of packets around, use the buffers directly, as you
use more of them start copying, as useage climbs attempt to allocate more.
if you can't allocate more (and you have all of your existing ones in use)
you will have to drop the packet, but at that point are you really in any
worse shape than if you didn't have some mechanism to copy out of the
large buffers?
David Lang
--
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