diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2020-01-16 14:58:04 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2020-01-16 14:58:04 -0800 |
commit | 398d4da1d0294de7011c07ce43c65878feb88eb6 (patch) | |
tree | 46509e22ee1f2079498e22193805504f904254dc | |
parent | 8844d1d9538a8952841f7feb3aa13a66d42efd0f (diff) | |
parent | c7a5aef3cb6d95bd0b307dce66df341be8a91a3d (diff) | |
download | data-kernel-398d4da1d0294de7011c07ce43c65878feb88eb6.tar.gz |
Merge c7a5aef3cb6d95bd0b307dce66df341be8a91a3d on remote branch
Change-Id: I5fedc1f2bd670421ae29ca49b554005ce8efb05e
-rw-r--r-- | drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c b/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c index c09a6f5..f871ce3 100644 --- a/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c +++ b/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c @@ -684,15 +684,19 @@ static void ntn_ipa_notify_cb(void *priv, enum ipa_dp_evt_type evt, /* Submit packet to network stack */ /* If its a ping packet submit it via rx_ni else use rx */ - if (ip_hdr->protocol == IPPROTO_ICMP) { - stat = netif_rx_ni(skb); - } else if ((pdata->dev->stats.rx_packets % - IPA_ETH_RX_SOFTIRQ_THRESH) == 0){ - stat = netif_rx_ni(skb); + /* If NAPI is enabled call receive_skb */ + if(ipa_get_lan_rx_napi()){ + stat = netif_receive_skb(skb); } else { - stat = netif_rx(skb); + if (ip_hdr->protocol == IPPROTO_ICMP) { + stat = netif_rx_ni(skb); + } else if ((pdata->dev->stats.rx_packets % + IPA_ETH_RX_SOFTIRQ_THRESH) == 0){ + stat = netif_rx_ni(skb); + } else { + stat = netif_rx(skb); + } } - if(stat == NET_RX_DROP) { pdata->dev->stats.rx_dropped++; } else { |