소스 검색

qcacmn: HAL RX flow API changes for beryllium

Add HAL RX flow API changes for WCN7850.

Change-Id: Id5085bffb7a98543e38d9e3b989346b07ae124f0
CRs-Fixed: 2891049
Rakesh Pillai 4 년 전
부모
커밋
1190bfe856
3개의 변경된 파일21개의 추가작업 그리고 18개의 파일을 삭제
  1. 16 16
      hal/wifi3.0/hal_rx_flow.c
  2. 2 1
      hal/wifi3.0/hal_rx_flow.h
  3. 3 1
      hal/wifi3.0/hal_rx_flow_info.h

+ 16 - 16
hal/wifi3.0/hal_rx_flow.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -209,15 +209,15 @@ qdf_export_symbol(hal_rx_flow_get_cmem_fse_timestamp);
  *
  * Return: Success/Failure
  */
-inline QDF_STATUS
+QDF_STATUS
 hal_rx_flow_delete_entry(struct hal_rx_fst *fst, void *hal_rx_fse)
 {
 	uint8_t *fse = (uint8_t *)hal_rx_fse;
 
-	if (!HAL_GET_FLD(fse, RX_FLOW_SEARCH_ENTRY_9, VALID))
+	if (!HAL_GET_FLD(fse, HAL_RX_FLOW_SEARCH_ENTRY, VALID))
 		return QDF_STATUS_E_NOENT;
 
-	HAL_CLR_FLD(fse, RX_FLOW_SEARCH_ENTRY_9, VALID);
+	HAL_CLR_FLD(fse, HAL_RX_FLOW_SEARCH_ENTRY, VALID);
 
 	return QDF_STATUS_SUCCESS;
 }
@@ -288,49 +288,49 @@ QDF_STATUS hal_rx_flow_get_tuple_info(void *hal_fse,
 	if (!hal_fse || !tuple_info)
 		return QDF_STATUS_E_INVAL;
 
-	if (!HAL_GET_FLD(hal_fse, RX_FLOW_SEARCH_ENTRY_9, VALID))
+	if (!HAL_GET_FLD(hal_fse, HAL_RX_FLOW_SEARCH_ENTRY, VALID))
 		return QDF_STATUS_E_NOENT;
 
 	tuple_info->src_ip_127_96 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_0,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      SRC_IP_127_96));
 	tuple_info->src_ip_95_64 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_1,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      SRC_IP_95_64));
 	tuple_info->src_ip_63_32 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_2,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      SRC_IP_63_32));
 	tuple_info->src_ip_31_0 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_3,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      SRC_IP_31_0));
 	tuple_info->dest_ip_127_96 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_4,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      DEST_IP_127_96));
 	tuple_info->dest_ip_95_64 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_5,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      DEST_IP_95_64));
 	tuple_info->dest_ip_63_32 =
 				qdf_ntohl(HAL_GET_FLD(hal_fse,
-						      RX_FLOW_SEARCH_ENTRY_6,
+						      HAL_RX_FLOW_SEARCH_ENTRY,
 						      DEST_IP_63_32));
 	tuple_info->dest_ip_31_0 =
 			qdf_ntohl(HAL_GET_FLD(hal_fse,
-					      RX_FLOW_SEARCH_ENTRY_7,
+					      HAL_RX_FLOW_SEARCH_ENTRY,
 					      DEST_IP_31_0));
 	tuple_info->dest_port = HAL_GET_FLD(hal_fse,
-					    RX_FLOW_SEARCH_ENTRY_8,
+					    HAL_RX_FLOW_SEARCH_ENTRY,
 					    DEST_PORT);
 	tuple_info->src_port = HAL_GET_FLD(hal_fse,
-					   RX_FLOW_SEARCH_ENTRY_8,
+					   HAL_RX_FLOW_SEARCH_ENTRY,
 					   SRC_PORT);
 	tuple_info->l4_protocol = HAL_GET_FLD(hal_fse,
-					      RX_FLOW_SEARCH_ENTRY_9,
+					      HAL_RX_FLOW_SEARCH_ENTRY,
 					      L4_PROTOCOL);
 
 	return QDF_STATUS_SUCCESS;

+ 2 - 1
hal/wifi3.0/hal_rx_flow.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -121,6 +121,7 @@ hal_rx_flow_delete_entry(struct hal_rx_fst *fst, void *hal_rx_fse);
 QDF_STATUS hal_rx_flow_get_tuple_info(void *hal_fse,
 				      struct hal_flow_tuple_info *tuple_info);
 
+
 /**
  * hal_rx_fst_attach() - Initialize Rx flow search table in HW FST
  *

+ 3 - 1
hal/wifi3.0/hal_rx_flow_info.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -19,6 +19,8 @@
 #ifndef __HAL_RX_FLOW_DEFINES_H
 #define __HAL_RX_FLOW_DEFINES_H
 
+#include "hal_flow.h"
+
 #define HAL_FST_HASH_KEY_SIZE_BYTES 40
 #define HAL_OFFSET(block, field) block ## _ ## field ## _OFFSET