[qca-nss-drv]: handling pktlog event for tx pkts
Handling pktlog event for tx packets from wifi fw
for nss wifi offload case. NSS will add a metadata
to event which with provide tx_desc and netbuf
information.
Change-Id: I66fb16ff25e7010e7fb7c60de0c6454630a75db7
Signed-off-by: Ankit Dhanuka <adhanuka@codeaurora.org>
diff --git a/exports/nss_wifi.h b/exports/nss_wifi.h
index d567c48..9f3795a 100644
--- a/exports/nss_wifi.h
+++ b/exports/nss_wifi.h
@@ -207,8 +207,10 @@
* wifi pktlog cfg message
*/
struct nss_wifi_pktlog_cfg_msg {
- uint32_t enable; /**< enable/disable*/
+ uint32_t enable; /**< enable/disable */
uint32_t bufsize; /**< pkt log buffer size */
+ uint32_t hdrsize; /**< pktlog header size */
+ uint32_t msdu_id_offset; /**< offset for msdu id in msg */
};
/**
@@ -219,6 +221,19 @@
};
/**
+ * wifi pktlog metadata info
+ */
+struct nss_wifi_pl_metadata {
+ uint32_t len; /**< length of single buffer in msdu */
+ uint32_t msdu_len; /**< total msdu length */
+ uint16_t da_tail; /**< dest address tail bytes */
+ uint16_t sa_tail; /**< source address tail bytes */
+ uint8_t vdev_id; /**< vdev id */
+ uint8_t res1; /**< reserved 1 */
+ uint16_t res2; /**< reserved 2 */
+};
+
+/**
* wifi ext data plane recieve common meta data
*/
struct nss_wifi_rx_ext_metadata{