diff options
| author | M Chetan Kumar <m.chetan.kumar@linux.intel.com> | 2021-12-09 17:32:28 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-11 07:53:56 +0300 |
| commit | da633aa3163fe1019c9e85333a17b74a5b99f5ac (patch) | |
| tree | 1eb55e9c2c657994ac6c7fb41458b40f1ce1f93f /drivers/net/wwan/iosm/iosm_ipc_mux.h | |
| parent | 5d710dc3318c981475780158c17a8725bdcc6a5d (diff) | |
| download | linux-da633aa3163fe1019c9e85333a17b74a5b99f5ac.tar.xz | |
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.h | 1 |
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; }; |
