msm: ipa: add rmnet_ctl enablement check

Check rmnet_ctl enablement before print successful.

Change-Id: I22300d2d996847c64d23cb55ccb454866e75e0a1
Cette révision appartient à :
Bojun Pan
2020-11-10 23:33:29 -08:00
révisé par Gerrit - the friendly Code Review server
Parent acf7b17ece
révision 6837550294

Voir le fichier

@@ -1566,14 +1566,13 @@ static int handle3_ingress_format(struct net_device *dev,
}
IPAWANDBG("ingress WAN pipe setup successfully\n");
ret = ipa3_setup_apps_low_lat_cons_pipe();
if (ret)
goto low_lat_fail;
ingress_eps_mask |= IPA_AP_INGRESS_EP_LOW_LAT;
IPAWANDBG("ingress low latency pipe setup successfully\n");
if (ipa3_ctx->rmnet_ctl_enable) {
ret = ipa3_setup_apps_low_lat_cons_pipe();
if (ret)
goto low_lat_fail;
ingress_eps_mask |= IPA_AP_INGRESS_EP_LOW_LAT;
IPAWANDBG("ingress low latency pipe setup successfully\n");
}
low_lat_fail:
mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
/* construct default WAN RT tbl for IPACM */
@@ -1693,13 +1692,15 @@ static int handle3_egress_format(struct net_device *dev,
return rc;
}
IPAWANDBG("engress WAN pipe setup successfully\n");
rc = ipa3_setup_apps_low_lat_prod_pipe();
if (rc) {
IPAWANERR("failed to setup egress low lat endpoint\n");
mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
goto low_lat_fail;
if (ipa3_ctx->rmnet_ctl_enable) {
rc = ipa3_setup_apps_low_lat_prod_pipe();
if (rc) {
IPAWANERR("failed to setup egress low lat endpoint\n");
mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
goto low_lat_fail;
}
IPAWANDBG("engress low lat pipe setup successfully\n");
}
IPAWANDBG("engress low lat pipe setup successfully\n");
mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
low_lat_fail: