]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f6a3b0e11090a89470f5126df59d6cd1fd0bfe1
tree0cc5793182972244b1bdfad6c14d15e6e02c4c95
parent24abc75bbf4e7d22034ccf9a0799b86a3b93a956
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: 5d7341dac688 ("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