Changli Gao wrote: > On Wed, Apr 7, 2010 at 9:40 PM, Patrick McHardy <kaber@xxxxxxxxx> wrote: >> Processing packets in order doesn't necessarily mean that there aren't >> many packets queued. Its just that the current scheme is pretty much >> optimal for this case since the verdict will always refer to the first >> entry in the list. >> > > How about keeping the old behavior by default, and replace the single > list with idr when an unorder vedict is received. You only know that during runtime, so this will get more complicated than necessary. Why not simply use a hash table with a size specified by userspace in the queue creation command? The default behaviour would be a size of 1, which is equivalent to the currently used single list. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html