Procházet zdrojové kódy

qcacmn: Update function params with xmit for stats

Stats updating functions will take an extra argument to specify,
under which xmit type respective stats should be updated.

Change-Id: I5a66f796079d177c87ac5bde7483c6431ed9bce6
CRs-Fixed: 3561679
Aman Mehta před 1 rokem
rodič
revize
cfbdba9b7e

+ 4 - 3
dp/inc/cdp_txrx_host_stats.h

@@ -432,14 +432,14 @@ cdp_update_pdev_host_stats(ol_txrx_soc_handle soc,
  * @vdev_id: id of the virtual device object
  * @data: pdev stats
  * @stats_id: type of stats
- *
+ * @xmit_type: xmit type, MLO/Legacy
  * Return: QDF_STATUS
  */
 static inline QDF_STATUS
 cdp_update_vdev_host_stats(ol_txrx_soc_handle soc,
 			   uint8_t vdev_id,
 			   void *data,
-			   uint16_t stats_id)
+			   uint16_t stats_id, uint8_t xmit_type)
 {
 	if (!soc || !soc->ops) {
 		dp_cdp_debug("Invalid Instance");
@@ -453,7 +453,8 @@ cdp_update_vdev_host_stats(ol_txrx_soc_handle soc,
 
 	return soc->ops->host_stats_ops->txrx_update_vdev_stats(soc, vdev_id,
 								data,
-								stats_id);
+								stats_id,
+								xmit_type);
 }
 
 /**

+ 1 - 1
dp/inc/cdp_txrx_ops.h

@@ -1307,7 +1307,7 @@ struct cdp_host_stats_ops {
 	QDF_STATUS
 		(*txrx_update_vdev_stats)(struct cdp_soc_t *soc,
 					  uint8_t vdev_id, void *buf,
-					  uint16_t stats_id);
+					  uint16_t stats_id, uint8_t xmit_type);
 	int
 		(*txrx_get_radio_stats)(struct cdp_soc_t *soc, uint8_t pdev_id,
 					void *buf);

+ 9 - 0
dp/inc/cdp_txrx_stats_struct.h

@@ -222,6 +222,15 @@
 #define PKT_BW_GAIN_320MHZ 12
 #endif
 
+/* Below indicates xmit path which can be taken by packet */
+#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
+#define DP_INGRESS_STATS_MAX_SIZE 2
+#define DP_VDEV_XMIT_TYPE 1 /* Packet can take path as : MLD/MLO-VAP/WDS_EXT */
+#else
+#define DP_INGRESS_STATS_MAX_SIZE 1
+#define DP_VDEV_XMIT_TYPE 0
+#endif
+
 /**
  * enum cdp_wifi_error_code - Code describing the type of WIFI error detected
  *