qcacmn: Fix Rx pkt len in stats

Fix packet length updated in data path RX stats

Change-Id: I136901a526441f55361f3d7079a03608188996dc
This commit is contained in:
Soumya Bhat
2017-12-29 18:53:14 +05:30
committed by snandini
parent f227fb7417
commit d4ad6afa37
2 changed files with 9 additions and 4 deletions

View File

@@ -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);