]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipmr: fix unresolved entry dumps
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 17 Oct 2018 19:34:34 +0000 (22:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 05:35:42 +0000 (22:35 -0700)
commit7ee5c80a0bf5c5c955e278b5364655c664879a35
treecb22890e3b2e6d84060ef74398364db06279302d
parent4b0c295f60d25156331548174bd5a1fbe8083748
net: ipmr: fix unresolved entry dumps

If the skb space ends in an unresolved entry while dumping we'll miss
some unresolved entries. The reason is due to zeroing the entry counter
between dumping resolved and unresolved mfc entries. We should just
keep counting until the whole table is dumped and zero when we move to
the next as we have a separate table counter.

Reported-by: Colin Ian King <colin.king@canonical.com>
Fixes: e7dce7c1df15 ("ipmr: improve hash scalability")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr_base.c