net/smc: use the retry mechanism for netlink messages
authorGuvenc Gulce <guvenc@linux.ibm.com>
Thu, 10 Sep 2020 16:48:28 +0000 (18:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:24:27 +0000 (15:24 -0700)
commit8418cb4065e3d6d214f7d5535c99deba6e813bf7
tree6c24c677317287e62d88a7a1d0c040c0cf2f6842
parent219d9aef6d838626c7143da790776b2ffd2949a1
net/smc: use the retry mechanism for netlink messages

When the netlink messages to be sent to the userspace
are too big for a single netlink message, send them in
chunks using the netlink_dump infrastructure. Modify the
smc diag dump code so that it can signal to the netlink_dump
infrastructure that it needs to send more data.

Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_diag.c