소스 검색

qcacmn: Set default REO destination ring to SW4

For MDM platforms, set default REO destination
ring to SW4 for STA vdev, which is same as SAP vdev.

Note that RX hashing is still enabled for STA vdev.
Also REO destination are run-time remapped when IPA
automony is enabled and disabled.

Change-Id: I49fa523673e7b736008679adec55821e198e8417
CRs-Fixed: 2456786
jiad 5 년 전
부모
커밋
3c91fb553a
3개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      dp/wifi3.0/dp_ipa.c
  2. 2 0
      dp/wifi3.0/dp_ipa.h
  3. 3 0
      dp/wifi3.0/dp_main.c

+ 12 - 0
dp/wifi3.0/dp_ipa.c

@@ -1727,4 +1727,16 @@ bool dp_ipa_rx_intrabss_fwd(struct cdp_vdev *pvdev, qdf_nbuf_t nbuf,
 	return true;
 }
 
+#ifdef MDM_PLATFORM
+bool dp_ipa_is_mdm_platform(void)
+{
+	return true;
+}
+#else
+bool dp_ipa_is_mdm_platform(void)
+{
+	return false;
+}
+#endif
+
 #endif

+ 2 - 0
dp/wifi3.0/dp_ipa.h

@@ -111,6 +111,8 @@ QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
 
 bool dp_reo_remap_config(struct dp_soc *soc, uint32_t *remap1,
 			 uint32_t *remap2);
+bool dp_ipa_is_mdm_platform(void);
+
 #else
 static inline int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev)
 {

+ 3 - 0
dp/wifi3.0/dp_main.c

@@ -5094,6 +5094,9 @@ static void dp_peer_setup_get_reo_hash(struct dp_vdev *vdev,
 		if (vdev->opmode == wlan_op_mode_ap) {
 			*reo_dest = IPA_REO_DEST_RING_IDX + 1;
 			*hash_based = 0;
+		} else if (vdev->opmode == wlan_op_mode_sta &&
+			   dp_ipa_is_mdm_platform()) {
+			*reo_dest = IPA_REO_DEST_RING_IDX + 1;
 		}
 	}
 }