浏览代码

qcacmn: Fix Rx pkt len in stats

Fix packet length updated in data path RX stats

Change-Id: I136901a526441f55361f3d7079a03608188996dc
Soumya Bhat 7 年之前
父节点
当前提交
d4ad6afa37
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. 2 2
      dp/wifi3.0/dp_rx.c
  2. 7 2
      dp/wifi3.0/dp_rx_err.c

+ 2 - 2
dp/wifi3.0/dp_rx.c

@@ -1534,12 +1534,12 @@ done:
 					deliver_list_tail,
 					nbuf);
 
-		DP_STATS_INCC_PKT(peer, rx.multicast, 1, pkt_len,
+		DP_STATS_INCC_PKT(peer, rx.multicast, 1, qdf_nbuf_len(nbuf),
 				hal_rx_msdu_end_da_is_mcbc_get(
 					rx_tlv_hdr));
 
 		DP_STATS_INC_PKT(peer, rx.to_stack, 1,
-				pkt_len);
+				qdf_nbuf_len(nbuf));
 
 		if ((soc->process_rx_status) && likely(peer) &&
 			hal_rx_attn_first_mpdu_get(rx_tlv_hdr)) {

+ 7 - 2
dp/wifi3.0/dp_rx_err.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -562,7 +562,12 @@ dp_rx_null_q_desc_handle(struct dp_soc *soc,
 				vdev->osif_rx);
 			qdf_nbuf_set_next(nbuf, NULL);
 			vdev->osif_rx(vdev->osif_vdev, nbuf);
-			DP_STATS_INC(vdev->pdev, rx.to_stack.num, 1);
+			DP_STATS_INCC_PKT(vdev->pdev, rx.multicast, 1,
+				qdf_nbuf_len(nbuf),
+				hal_rx_msdu_end_da_is_mcbc_get(
+					rx_tlv_hdr));
+			DP_STATS_INC_PKT(vdev->pdev, rx.to_stack, 1,
+							qdf_nbuf_len(nbuf));
 		} else {
 			QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
 				FL("INVALID vdev %pK OR osif_rx"), vdev);