• Patrick McHardy's avatar
    [IPV{4,6}]: lru queue for ip_fragment evictor. · 344d9004
    Patrick McHardy authored
    The current ip_fragment evictor kills the oldest entry of each hash bucket
    starting with 0 instead of killing the oldest entry of all buckets. This 
    leads
    to unfair behaviour if one of the higher hash slots carries alot of 
    fragments.
    This patch holds the frag heads in a lru queue so we can kills the least
    recently used first. Each arriving fragment counts as usage.
    344d9004
reassembly.c 15.9 KB