qcacmn: Add HW, SW and nbuf prefetch support in Berryllium

Add HW, SW and nbuf prefetch support in Berryllium, this will
ensure we have prefetched the HW desc, SW desc and nbuf by
the time we are in the 3rd iteration of the dp_rx_be_process
first loop.

CRs-Fixed: 3218647
Change-Id: I27d371c5d1c9a37d61e4fc00d5eb03609fad589c
Bu işleme şunda yer alıyor:
Tallapragada Kalyan
2022-03-08 16:49:58 +05:30
işlemeyi yapan: Madan Koyyalamudi
ebeveyn 7c19bfc5eb
işleme f7a1c7e0c7
5 değiştirilmiş dosya ile 206 ekleme ve 24 silme

Dosyayı Görüntüle

@@ -2893,6 +2893,25 @@ static inline void *dp_srng_dst_prefetch(hal_soc_handle_t hal_soc,
{
return hal_srng_dst_prefetch(hal_soc, hal_ring_hdl, num_entries);
}
/**
* dp_srng_dst_prefetch_32_byte_desc() - Wrapper function to prefetch
* 32 byte descriptor starting at
* 64 byte offset
* @hal_soc_hdl: HAL SOC handle
* @hal_ring: opaque pointer to the HAL Rx Destination ring
* @num_entries: Entry count
*
* Return: None
*/
static inline
void *dp_srng_dst_prefetch_32_byte_desc(hal_soc_handle_t hal_soc,
hal_ring_handle_t hal_ring_hdl,
uint32_t num_entries)
{
return hal_srng_dst_prefetch_32_byte_desc(hal_soc, hal_ring_hdl,
num_entries);
}
#else
static inline void *dp_srng_dst_prefetch(hal_soc_handle_t hal_soc,
hal_ring_handle_t hal_ring_hdl,
@@ -2900,6 +2919,14 @@ static inline void *dp_srng_dst_prefetch(hal_soc_handle_t hal_soc,
{
return NULL;
}
static inline
void *dp_srng_dst_prefetch_32_byte_desc(hal_soc_handle_t hal_soc,
hal_ring_handle_t hal_ring_hdl,
uint32_t num_entries)
{
return NULL;
}
#endif
#ifdef QCA_ENH_V3_STATS_SUPPORT