hsr: add restart routine into hsr_get_node_list()
authorTaehee Yoo <ap420073@gmail.com>
Fri, 13 Mar 2020 06:50:24 +0000 (06:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 08:46:09 +0000 (01:46 -0700)
commitca19c70f5225771c05bcdcb832b4eb84d7271c5e
tree664ea4cfbd7c46f36fbf57f884621eb0cdd1e889
parent173756b86803655d70af7732079b3aa935e6ab68
hsr: add restart routine into hsr_get_node_list()

The hsr_get_node_list() is to send node addresses to the userspace.
If there are so many nodes, it could fail because of buffer size.
In order to avoid this failure, the restart routine is added.

Fixes: f421436a591d ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_netlink.c