qcacmn: Handle the nbuf sanity failure gracefully

Th nbuf sanity can fail in case when HW posts the
same buffer twice. This case can be handled gracefully
by just skipping the processing of the corresponding rx
descriptor.

Change-Id: I471bb9f364a51937e85249996e427f15872bda97
CRs-Fixed: 2738558
这个提交包含在:
Rakesh Pillai
2020-07-23 00:13:13 +05:30
提交者 snandini
父节点 e344f80463
当前提交 d7a0b3f14c
修改 4 个文件,包含 28 行新增8 行删除

查看文件

@@ -6055,6 +6055,8 @@ void dp_txrx_path_stats(struct dp_soc *soc)
soc->stats.rx.err.raw_frm_drop);
DP_PRINT_STATS("Rx stale link desc cookie: %d",
pdev->soc->stats.rx.err.invalid_link_cookie);
DP_PRINT_STATS("Rx nbuf sanity fails: %d",
pdev->soc->stats.rx.err.nbuf_sanity_fail);
DP_PRINT_STATS("Reo Statistics");
DP_PRINT_STATS("near_full: %u ", soc->stats.rx.near_full);
@@ -6617,6 +6619,9 @@ dp_print_soc_rx_stats(struct dp_soc *soc)
DP_PRINT_STATS("Rx stale link desc cookie: %d",
soc->stats.rx.err.invalid_link_cookie);
DP_PRINT_STATS("Rx nbuf sanity fail: %d",
soc->stats.rx.err.nbuf_sanity_fail);
for (i = 0; i < HAL_RXDMA_ERR_MAX; i++) {
index += qdf_snprint(&rxdma_error[index],
DP_RXDMA_ERR_LENGTH - index,