qcacmn: Add packet logging support for initial 32 packets
Add packet logging support by registering Rx and Tx callback functions for packet logging of initial 32 Tx and Rx packets. Change-Id: I91b59b7c5f65f505e3ee730c497347be28955128 CRs-Fixed: 3224881
Este commit está contenido en:

cometido por
Madan Koyyalamudi

padre
06c5d97195
commit
6b576c65bb
@@ -3647,4 +3647,68 @@ QDF_STATUS
|
||||
dp_get_peer_telemetry_stats(struct cdp_soc_t *soc_hdl, uint8_t *addr,
|
||||
struct cdp_peer_telemetry_stats *stats);
|
||||
#endif /* WLAN_TELEMETRY_STATS_SUPPORT */
|
||||
|
||||
#ifdef CONNECTIVITY_PKTLOG
|
||||
/*
|
||||
* dp_tx_send_pktlog() - send tx packet log
|
||||
* @soc: soc handle
|
||||
* @pdev: pdev handle
|
||||
* @nbuf: nbuf
|
||||
* @status: status of tx packet
|
||||
*
|
||||
* This function is used to send tx packet for logging
|
||||
*
|
||||
* Return: None
|
||||
*
|
||||
*/
|
||||
static inline
|
||||
void dp_tx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
|
||||
qdf_nbuf_t nbuf, enum qdf_dp_tx_rx_status status)
|
||||
{
|
||||
ol_txrx_pktdump_cb packetdump_cb = pdev->dp_tx_packetdump_cb;
|
||||
|
||||
if (qdf_unlikely(packetdump_cb)) {
|
||||
packetdump_cb((ol_txrx_soc_handle)soc, pdev->pdev_id,
|
||||
QDF_NBUF_CB_TX_VDEV_CTX(nbuf),
|
||||
nbuf, status, QDF_TX_DATA_PKT);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* dp_rx_send_pktlog() - send rx packet log
|
||||
* @soc: soc handle
|
||||
* @pdev: pdev handle
|
||||
* @nbuf: nbuf
|
||||
* @status: status of rx packet
|
||||
*
|
||||
* This function is used to send rx packet for logging
|
||||
*
|
||||
* Return: None
|
||||
*
|
||||
*/
|
||||
static inline
|
||||
void dp_rx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
|
||||
qdf_nbuf_t nbuf, enum qdf_dp_tx_rx_status status)
|
||||
{
|
||||
ol_txrx_pktdump_cb packetdump_cb = pdev->dp_rx_packetdump_cb;
|
||||
|
||||
if (qdf_unlikely(packetdump_cb)) {
|
||||
packetdump_cb((ol_txrx_soc_handle)soc, pdev->pdev_id,
|
||||
QDF_NBUF_CB_RX_VDEV_ID(nbuf),
|
||||
nbuf, status, QDF_RX_DATA_PKT);
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
void dp_tx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
|
||||
qdf_nbuf_t nbuf, enum qdf_dp_tx_rx_status status)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void dp_rx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
|
||||
qdf_nbuf_t nbuf, enum qdf_dp_tx_rx_status status)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
#endif /* #ifndef _DP_INTERNAL_H_ */
|
||||
|
Referencia en una nueva incidencia
Block a user