Merge "msm: ipa: Fix accidental ipa_set_perf_profile removal"
diff --git a/drivers/platform/msm/ipa/ipa_clients/ipa_uc_offload.c b/drivers/platform/msm/ipa/ipa_clients/ipa_uc_offload.c
index 4519473..ad15e0d 100644
--- a/drivers/platform/msm/ipa/ipa_clients/ipa_uc_offload.c
+++ b/drivers/platform/msm/ipa/ipa_clients/ipa_uc_offload.c
@@ -483,6 +483,28 @@
}
EXPORT_SYMBOL(ipa_uc_offload_conn_pipes);
+int ipa_set_perf_profile(struct ipa_perf_profile *profile)
+{
+ if (!profile) {
+ IPA_UC_OFFLOAD_ERR("Invalid input\n");
+ return -EINVAL;
+ }
+
+ if (profile->client != IPA_CLIENT_ETHERNET_PROD &&
+ profile->client != IPA_CLIENT_ETHERNET_CONS) {
+ IPA_UC_OFFLOAD_ERR("not supported\n");
+ return -EINVAL;
+ }
+
+ IPA_UC_OFFLOAD_DBG("setting throughput to %d\n",
+ profile->max_supported_bw_mbps);
+
+ return ipa_pm_set_throughput(
+ ipa_uc_offload_ctx[IPA_UC_NTN]->pm_hdl,
+ profile->max_supported_bw_mbps);
+}
+EXPORT_SYMBOL(ipa_set_perf_profile);
+
static int ipa_uc_ntn_disconn_pipes(struct ipa_uc_offload_ctx *ntn_ctx)
{
int ipa_ep_idx_ul, ipa_ep_idx_dl;