mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
net: qrtr: Add support for DEL_PROC control message
Add the DEL_PROC control message for forwarding usecases. If this proc acts as a gateway between two procs then they need a notification to clean up servers and client ports when either goes down. This message acts as notification to clean up all resources associated with the node in the message. Change-Id: I3514f54aa0221e104196e2120e929cc9f351847d Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
parent
8eef6a4ad1
commit
22e63b1f1b
3 changed files with 66 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ enum qrtr_pkt_type {
|
|||
QRTR_TYPE_NEW_LOOKUP = 10,
|
||||
QRTR_TYPE_DEL_LOOKUP = 11,
|
||||
};
|
||||
#define QRTR_TYPE_DEL_PROC 13
|
||||
|
||||
|
||||
struct qrtr_ctrl_pkt {
|
||||
__le32 cmd;
|
||||
|
|
@ -43,6 +45,11 @@ struct qrtr_ctrl_pkt {
|
|||
__le32 node;
|
||||
__le32 port;
|
||||
} client;
|
||||
|
||||
struct {
|
||||
__le32 rsvd;
|
||||
__le32 node;
|
||||
} proc;
|
||||
};
|
||||
} __packed;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue