Skip to content

Commit eddf016

Browse files
Nikolay Aleksandrovdavem330
authored andcommitted
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: 8fb472c ("ipmr: improve hash scalability") Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 06a36ec commit eddf016

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv4/ipmr_base.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ int mr_rtm_dumproute(struct sk_buff *skb, struct netlink_callback *cb,
296296
next_entry:
297297
e++;
298298
}
299-
e = 0;
300-
s_e = 0;
301299

302300
spin_lock_bh(lock);
303301
list_for_each_entry(mfc, &mrt->mfc_unres_queue, list) {

0 commit comments

Comments
 (0)