msm:ipa: fix the tx_napi enable condition

Only enable the tx_napi on APPS_PROD pipes.

Change-Id: Iaff4645e618d37604a86b5fc05f6cfe6e677c156
This commit is contained in:
Bojun Pan 2020-05-28 10:28:25 -07:00
commit f4527983e0

View file

@ -1179,7 +1179,8 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
tasklet_init(&ep->sys->tasklet, ipa3_tasklet_rx_notify,
(unsigned long) ep->sys);
if (ipa3_ctx->tx_napi_enable) {
if (IPA_CLIENT_IS_PROD(ep->client) &&
ipa3_ctx->tx_napi_enable) {
if (sys_in->client != IPA_CLIENT_APPS_WAN_PROD) {
netif_tx_napi_add(&ipa3_ctx->generic_ndev,
&ep->sys->napi_tx, ipa3_aux_poll_tx_complete,