net: qrtr: Inform open sockets about new controller
commitb24844b1b537c34e3069c4bcfb448a5a05c9e0dc
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 7 Jun 2017 21:07:39 +0000 (7 14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 15:34:57 +0000 (8 11:34 -0400)
tree669f69d4c0997832483d89fb4dc344c74d12efe7
parent1784473b242585f407d3e75654d5b06f462a355b
net: qrtr: Inform open sockets about new controller

As the higher level communication only deals with "services" the
a service directory is required to keep track of local and remote
services. In order for qrtr clients to be informed about when the
service directory implementation is available some event needs to be
passed to them.

Rather than introducing support for broadcasting such a message in-band
to all open local sockets we flag each socket with ENETRESET, as there
are no other expected operations that would benefit from having support
from locally broadcasting messages.

Cc: Courtney Cavin <ccavin@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c