summaryrefslogtreecommitdiff
path: root/drivers/net/wwan/iosm/iosm_ipc_mux.h
diff options
context:
space:
mode:
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>2021-12-09 20:02:28 +0530
committerJakub Kicinski <kuba@kernel.org>2021-12-10 20:53:56 -0800
commitda633aa3163fe1019c9e85333a17b74a5b99f5ac (patch)
tree1eb55e9c2c657994ac6c7fb41458b40f1ce1f93f /drivers/net/wwan/iosm/iosm_ipc_mux.h
parent5d710dc3318c981475780158c17a8725bdcc6a5d (diff)
net: wwan: iosm: release data channel in case no active IP session
If there is no active IP session (interface up & running) then release the data channel. Use nr_sessions variable to track current active IP sessions. If the count drops to 0, then send pipe close ctrl message to release the data channel. Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com> Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux.h')
-rw-r--r--drivers/net/wwan/iosm/iosm_ipc_mux.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_mux.h b/drivers/net/wwan/iosm/iosm_ipc_mux.h
index ddd2cd0bd911..88debaa1ed31 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_mux.h
+++ b/drivers/net/wwan/iosm/iosm_ipc_mux.h
@@ -278,7 +278,6 @@ struct iosm_mux {
struct ipc_mux_config {
enum ipc_mux_protocol protocol;
enum ipc_mux_ul_flow ul_flow;
- int nr_sessions;
int instance_id;
};