rmnet_core: support low latency channel switch

Add support to switch bearers between default and lower latency
channels via QMAP commands.

Change-Id: I6662f59c713e8e3ab7409f50871bec11d9908c67
Acked-by: Weiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan
2020-08-27 19:47:17 -07:00
rodzic b38dff7d79
commit b8552944d5
15 zmienionych plików z 873 dodań i 216 usunięć

Wyświetl plik

@@ -388,6 +388,7 @@ static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[],
struct rmnet_endpoint *ep;
struct rmnet_port *port;
u16 mux_id;
int rc = 0;
real_dev = __dev_get_by_index(dev_net(dev),
nla_get_u32(tb[IFLA_LINK]));
@@ -422,7 +423,7 @@ static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[],
struct tcmsg *tcm;
tcm = nla_data(qos);
qmi_rmnet_change_link(dev, port, tcm, nla_len(qos));
rc = qmi_rmnet_change_link(dev, port, tcm, nla_len(qos));
}
if (data[IFLA_RMNET_UL_AGG_PARAMS]) {
@@ -435,7 +436,7 @@ static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[],
agg_params->agg_time);
}
return 0;
return rc;
}
static size_t rmnet_get_size(const struct net_device *dev)