diff --git a/hal/wifi3.0/hal_rx_flow.c b/hal/wifi3.0/hal_rx_flow.c index 1958854689..56039d3ad0 100644 --- a/hal/wifi3.0/hal_rx_flow.c +++ b/hal/wifi3.0/hal_rx_flow.c @@ -133,6 +133,7 @@ hal_rx_flow_delete_entry(struct hal_rx_fst *fst, void *hal_rx_fse) } qdf_export_symbol(hal_rx_flow_delete_entry); +#ifndef WLAN_SUPPORT_RX_FISA /** * hal_rx_fst_key_configure() - Configure the Toeplitz key in the FST * @fst: Pointer to the Rx Flow Search Table @@ -157,6 +158,11 @@ static void hal_rx_fst_key_configure(struct hal_rx_fst *fst) key_bitwise_shift_left(key_bytes, HAL_FST_HASH_KEY_SIZE_BYTES, 5); key_reverse(fst->shifted_key, key_bytes, HAL_FST_HASH_KEY_SIZE_BYTES); } +#else +static void hal_rx_fst_key_configure(struct hal_rx_fst *fst) +{ +} +#endif /** * hal_rx_fst_get_base() - Retrieve the virtual base address of the Rx FST @@ -240,6 +246,7 @@ QDF_STATUS hal_rx_flow_get_tuple_info(void *hal_fse, return QDF_STATUS_SUCCESS; } +#ifndef WLAN_SUPPORT_RX_FISA /** * hal_flow_toeplitz_create_cache() - Calculate hashes for each possible * byte value with the key taken as is @@ -302,6 +309,11 @@ static void hal_flow_toeplitz_create_cache(struct hal_rx_fst *fst) cur_key = cur_key << 8 | new_key_byte; } } +#else +static void hal_flow_toeplitz_create_cache(struct hal_rx_fst *fst) +{ +} +#endif /** * hal_rx_fst_attach() - Initialize Rx flow search table in HW FST @@ -386,6 +398,7 @@ void hal_rx_fst_detach(struct hal_rx_fst *rx_fst, } qdf_export_symbol(hal_rx_fst_detach); +#ifndef WLAN_SUPPORT_RX_FISA /** * hal_flow_toeplitz_hash() - Calculate Toeplitz hash by using the cached key * @@ -433,6 +446,13 @@ hal_flow_toeplitz_hash(void *hal_fst, struct hal_rx_flow *flow) return hash; } +#else +uint32_t +hal_flow_toeplitz_hash(void *hal_fst, struct hal_rx_flow *flow) +{ + return 0; +} +#endif qdf_export_symbol(hal_flow_toeplitz_hash); /** diff --git a/hal/wifi3.0/hal_rx_flow_info.h b/hal/wifi3.0/hal_rx_flow_info.h index 44065820f3..4c91e2cf49 100644 --- a/hal/wifi3.0/hal_rx_flow_info.h +++ b/hal/wifi3.0/hal_rx_flow_info.h @@ -55,11 +55,13 @@ struct hal_rx_fst { uint8_t *base_vaddr; qdf_dma_addr_t base_paddr; uint8_t *key; +#ifndef WLAN_SUPPORT_RX_FISA uint8_t shifted_key[HAL_FST_HASH_KEY_SIZE_BYTES]; + uint32_t key_cache[HAL_FST_HASH_KEY_SIZE_BYTES][1 << 8]; +#endif uint16_t max_entries; uint16_t max_skid_length; uint16_t hash_mask; - uint32_t key_cache[HAL_FST_HASH_KEY_SIZE_BYTES][1 << 8]; uint32_t add_flow_count; uint32_t del_flow_count; };