net: qrtr: Respond to HELLO message
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 2 Mar 2020 07:03:04 +0000 (23:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:52:21 +0000 (17:52 -0800)
commita1dc1d6a05a730b62b45828975a088db577d3139
tree0cc5793182972244b1bdfad6c14d15e6e02c4c95
parent30a87f150bd605feca716c056ef9a9ebb1fee1f9
net: qrtr: Respond to HELLO message

Lost in the translation from the user space implementation was the
detail that HELLO mesages must be exchanged between each node pair.  As
such the incoming HELLO must be replied to.

Similar to the previous implementation no effort is made to prevent two
Linux boxes from continuously sending HELLO messages back and forth,
this is left to a follow up patch.

say_hello() is moved, to facilitate the new call site.

Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace")
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/ns.c