dataipa: ipa_eth: ntn3: Change #packets interrupts' moderation to 2
* 2 packets threshold proved to perform best in terms of throughput
* Changing function name ntn -> ntn3 to stress the exact use case
Change-Id: I251cdff2612c568021e649deb7723708022f2495
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_eth_i.c b/drivers/platform/msm/ipa/ipa_v3/ipa_eth_i.c
index 17c31f2..4d61446 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_eth_i.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_eth_i.c
@@ -733,7 +733,7 @@
return result;
}
-static int ipa_eth_setup_ntn_gsi_channel(
+static int ipa_eth_setup_ntn3_gsi_channel(
struct ipa_eth_client_pipe_info *pipe,
struct ipa3_ep_context *ep)
{
@@ -765,8 +765,11 @@
gsi_evt_ring_props.int_modt = IPA_ETH_NTN_MODT;
/* len / RE_SIZE == len in counts (convert from bytes) */
len = pipe->info.transfer_ring_size;
- gsi_evt_ring_props.int_modc = len * IPA_ETH_AQC_MODC_FACTOR /
- (100 * GSI_EVT_RING_RE_SIZE_16B);
+ /*
+ * int_modc = 2 is experiments based best value for tput.
+ * we shall use a framework setup in the future.
+ */
+ gsi_evt_ring_props.int_modc = 2;
gsi_evt_ring_props.exclusive = true;
gsi_evt_ring_props.err_cb = ipa_eth_gsi_evt_ring_err_cb;
gsi_evt_ring_props.user_data = NULL;
@@ -1029,7 +1032,7 @@
result = ipa_eth_setup_aqc_gsi_channel(pipe, ep);
break;
case IPA_HW_PROTOCOL_NTN3:
- result = ipa_eth_setup_ntn_gsi_channel(pipe, ep);
+ result = ipa_eth_setup_ntn3_gsi_channel(pipe, ep);
break;
default:
IPAERR("unknown protocol %d\n", prot);