Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net
This commit is contained in:
@@ -2297,6 +2297,12 @@ int fib_table_dump(struct fib_table *tb, struct sk_buff *skb,
|
||||
int count = cb->args[2];
|
||||
t_key key = cb->args[3];
|
||||
|
||||
/* First time here, count and key are both always 0. Count > 0
|
||||
* and key == 0 means the dump has wrapped around and we are done.
|
||||
*/
|
||||
if (count && !key)
|
||||
return skb->len;
|
||||
|
||||
while ((l = leaf_walk_rcu(&tp, key)) != NULL) {
|
||||
int err;
|
||||
|
||||
|
Reference in New Issue
Block a user