diff options
author | David Ahern <dsahern@gmail.com> | 2019-05-02 15:14:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-04 01:38:15 -0400 |
commit | 7fcd1e033dacedd520abebc943c960dcf5add3ae (patch) | |
tree | ec3bfdbecfae2dba28ba400d99de094bdf25db6a /net/ipv4/tcp_ipv4.c | |
parent | 25426043ec9e22b90c789407c28e40f32a9d1985 (diff) | |
download | linux-stable-7fcd1e033dacedd520abebc943c960dcf5add3ae.tar.gz linux-stable-7fcd1e033dacedd520abebc943c960dcf5add3ae.tar.bz2 linux-stable-7fcd1e033dacedd520abebc943c960dcf5add3ae.zip |
ipmr_base: Do not reset index in mr_table_dump
e is the counter used to save the location of a dump when an
skb is filled. Once the walk of the table is complete, mr_table_dump
needs to return without resetting that index to 0. Dump of a specific
table is looping because of the reset because there is no way to
indicate the walk of the table is done.
Move the reset to the caller so the dump of each table starts at 0,
but the loop counter is maintained if a dump fills an skb.
Fixes: e1cedae1ba6b0 ("ipmr: Refactor mr_rtm_dumproute")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions