]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: provide addr and netconf dump consistency info
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 22 Mar 2013 06:28:42 +0000 (06:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2013 21:16:29 +0000 (17:16 -0400)
commitac45a90caca39d1ba3cbe23ee17736ed85f9401d
treed773aa622e9f208114a37487bf4dac0862def51d
parent520192f64c9101219e6e65b21829bc5ce5c6c5f5
ipv4: provide addr and netconf dump consistency info

This patch takes benefit of dev_addr_genid and dev_base_seq to check if a change
occurs during a netlink dump. If a change is detected, the flag NLM_F_DUMP_INTR
is set in the first message after the dump was interrupted.

Note that seq and prev_seq must be reset between each family in rtnl_dump_all()
because they are specific to each family.

Reported-by: Junwei Zhang <junwei.zhang@6wind.com>
Reported-by: Hongjun Li <hongjun.li@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c
net/ipv4/devinet.c