dataipa: ipa_eth: Dynamic NTN3 client moderation configuration

* Added the ability to dynamically configure a NTN3 client
moderation on setup

Change-Id: I8838850a69635fa168eeb43195ac0fb896179994
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Bu işleme şunda yer alıyor:
Eliad Ben Yishay
2022-06-30 14:15:11 +03:00
işlemeyi yapan: Gerrit - the friendly Code Review server
ebeveyn d7e4bd13f3
işleme 3b1c5ac624

Dosyayı Görüntüle

@@ -836,8 +836,15 @@ static int ipa_eth_setup_ntn3_gsi_channel(
(u32)((u64)(pipe->info.data_buff_list[0].iova) >> 32);
}
if (pipe->dir == IPA_ETH_PIPE_DIR_TX)
ch_scratch.ntn.ioc_mod_threshold = IPA_ETH_NTN_MODT;
if (pipe->dir == IPA_ETH_PIPE_DIR_TX) {
if (pipe->info.client_info.ntn.ioc_mod_threshold &&
pipe->info.client_info.ntn.ioc_mod_threshold < len / GSI_EVT_RING_RE_SIZE_16B) {
ch_scratch.ntn.ioc_mod_threshold =
pipe->info.client_info.ntn.ioc_mod_threshold;
} else {
ch_scratch.ntn.ioc_mod_threshold = IPA_ETH_NTN_MODT;
}
}
result = gsi_write_channel_scratch(ep->gsi_chan_hdl, ch_scratch);
if (result != GSI_STATUS_SUCCESS) {