qcacmn: Add support to log ICMP packet seq no and ID

Add support to log ICMP seq no and ID in DPTRACE.
Other protcols can use this private proto data to record
there private data accordingly. Currently it is set to 0.
Increase the record entry from 40 bytes to 50 bytes.

Change-Id: Ief5fb26a97408a364af486f3eaec2e108de71d52
CRs-Fixed: 2951916
Šī revīzija ir iekļauta:
sandhu
2021-05-14 15:37:27 -07:00
revīziju iesūtīja Madan Koyyalamudi
vecāks c515aa874b
revīzija 81272da21e
3 mainīti faili ar 35 papildinājumiem un 13 dzēšanām

Parādīt failu

@@ -186,7 +186,7 @@ typedef struct s_qdf_trace_data {
#define MAX_QDF_DP_TRACE_RECORDS 2000
#endif
#define QDF_DP_TRACE_RECORD_SIZE 40
#define QDF_DP_TRACE_RECORD_SIZE 50 /* bytes */
#define INVALID_QDF_DP_TRACE_ADDR 0xffffffff
#define QDF_DP_TRACE_VERBOSITY_HIGH 4
#define QDF_DP_TRACE_VERBOSITY_MEDIUM 3
@@ -350,6 +350,8 @@ struct qdf_dp_trace_ptr_buf {
* @type: packet type
* @subtype: packet subtype
* @dir: direction
* @proto_priv_data: protocol private data
* can be stored in this.
*/
struct qdf_dp_trace_proto_buf {
struct qdf_mac_addr sa;
@@ -358,6 +360,11 @@ struct qdf_dp_trace_proto_buf {
uint8_t type;
uint8_t subtype;
uint8_t dir;
/* for ICMP priv data is bit offset 38 to 42
* 38-40 ICMP_ICMP_ID and
* 40-42 ICMP_SEQ_NUM_OFFSET
*/
uint32_t proto_priv_data;
};
/**
@@ -901,14 +908,15 @@ uint8_t qdf_dp_get_no_of_record(void);
* @dir: direction
* @pdev_id: pdev id
* @print: to print this proto pkt or not
*
* @proto_priv_data: protocol specific private
* data.
* Return: none
*/
void
qdf_dp_trace_proto_pkt(enum QDF_DP_TRACE_ID code, uint8_t vdev_id,
uint8_t *sa, uint8_t *da, enum qdf_proto_type type,
enum qdf_proto_subtype subtype, enum qdf_proto_dir dir,
uint8_t pdev_id, bool print);
uint8_t pdev_id, bool print, uint32_t proto_priv_data);
void qdf_dp_trace_disable_live_mode(void);
void qdf_dp_trace_enable_live_mode(void);