]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4] fib_trie: rescan if key is lost during dump
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 1 Feb 2008 00:45:47 +0000 (16:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:23 +0000 (19:28 -0800)
commitd70b452190cc76a88276c58567e8f0ed7dd58664
treee163b578c98f3c3ac69cb88ca6bf936d6ab4d698
parent3071afbc6d91f540ce657ab82dc32895b73da204
[IPV4] fib_trie: rescan if key is lost during dump

Normally during a dump the key of the last dumped entry is used for
continuation, but since lock is dropped it might be lost. In that case
fallback to the old counter based N^2 behaviour.  This means the dump
will end up skipping some routes which matches what FIB_HASH does.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
net/ipv4/fib_trie.c