qcacmn: Add sequence number for WMI pipe

Add sequence number to each packet queued on wmi pipe and
match it against expected sequence number in wmi completion handler.
WMI packets are consumed internally, use the skb mark field to capture
the sequence number of the wmi packet.

Change-Id: I1421e3fcff0a2b326f6d899780c773950544ef26
CRs-Fixed: 2741465
这个提交包含在:
Balaganapathy Palanisamy
2020-08-04 15:38:58 +05:30
提交者 snandini
父节点 60cdb2185c
当前提交 55650d9c02
修改 5 个文件,包含 181 行新增29 行删除

查看文件

@@ -2543,6 +2543,14 @@ struct wmi_unified {
uint32_t *evt_pdev_id_map;
uint32_t *cmd_phy_id_map;
uint32_t *evt_phy_id_map;
#ifdef WMI_INTERFACE_SEQUENCE_CHECK
/* wmi next transmit sequence number */
uint32_t wmi_sequence;
/* wmi completion expected sequence number */
uint32_t wmi_exp_sequence;
qdf_spinlock_t wmi_seq_lock;
#endif /*WMI_INTERFACE_SEQUENCE_CHECK*/
qdf_atomic_t num_stats_over_qmi;
};