Loading drivers/net/ethernet/msm/ecm_ipa.c +3 −1 Original line number Diff line number Diff line Loading @@ -661,12 +661,14 @@ static void ecm_ipa_packet_receive_notify(void *priv, struct sk_buff *skb = (struct sk_buff *)data; struct ecm_ipa_dev *ecm_ipa_ctx = priv; int result; unsigned int packet_len; if (!skb) { ECM_IPA_ERROR("Bad SKB received from IPA driver\n"); return; } packet_len = skb->len; ECM_IPA_DEBUG("packet RX, len=%d\n", skb->len); if (unlikely(ecm_ipa_ctx->state != ECM_IPA_CONNECTED_AND_UP)) { Loading @@ -691,7 +693,7 @@ static void ecm_ipa_packet_receive_notify(void *priv, if (result) ECM_IPA_ERROR("fail on netif_rx\n"); ecm_ipa_ctx->net->stats.rx_packets++; ecm_ipa_ctx->net->stats.rx_bytes += skb->len; ecm_ipa_ctx->net->stats.rx_bytes += packet_len; return; } Loading Loading
drivers/net/ethernet/msm/ecm_ipa.c +3 −1 Original line number Diff line number Diff line Loading @@ -661,12 +661,14 @@ static void ecm_ipa_packet_receive_notify(void *priv, struct sk_buff *skb = (struct sk_buff *)data; struct ecm_ipa_dev *ecm_ipa_ctx = priv; int result; unsigned int packet_len; if (!skb) { ECM_IPA_ERROR("Bad SKB received from IPA driver\n"); return; } packet_len = skb->len; ECM_IPA_DEBUG("packet RX, len=%d\n", skb->len); if (unlikely(ecm_ipa_ctx->state != ECM_IPA_CONNECTED_AND_UP)) { Loading @@ -691,7 +693,7 @@ static void ecm_ipa_packet_receive_notify(void *priv, if (result) ECM_IPA_ERROR("fail on netif_rx\n"); ecm_ipa_ctx->net->stats.rx_packets++; ecm_ipa_ctx->net->stats.rx_bytes += skb->len; ecm_ipa_ctx->net->stats.rx_bytes += packet_len; return; } Loading