qcacmn: Get vdev id from tx descriptor

Currently vdev id is passed from nbuf cb
but vdev_id is not being updated in nbuf cb
which is resulting in passing wrong vdev id to the
packet logging function.

So to fix issue pass vdev id from tx descriptor instead
of nbuf cb and also rate limit the error log in vdev NULL
case.

Change-Id: I69f568b7da52f1c96f208a220c6c4a7f6d98e082
CRs-Fixed: 3327359
此提交包含在:
Amit Mehta
2022-11-03 14:55:26 +05:30
提交者 Madan Koyyalamudi
父節點 8c1db79cea
當前提交 f8e6f61b2e
共有 2 個檔案被更改,包括 2 行新增3 行删除

查看文件

@@ -4125,8 +4125,7 @@ void dp_tx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
if (qdf_unlikely(packetdump_cb) &&
dp_tx_frm_std == tx_desc->frm_type) {
packetdump_cb((ol_txrx_soc_handle)soc, pdev->pdev_id,
QDF_NBUF_CB_TX_VDEV_CTX(nbuf),
nbuf, status, QDF_TX_DATA_PKT);
tx_desc->vdev_id, nbuf, status, QDF_TX_DATA_PKT);
}
}