qcacmn: set customizable rx_buffer_size

introduce custom rx_buffer_size from INI within the bounds of
2048-4096

Change-Id: I17ad727cea74fc559d6407d3c8662cb6a4cd6b0a
CRs-Fixed: 3631271
This commit is contained in:
Ruben Columbus
2023-10-03 15:51:30 -07:00
committed by Rahul Choudhary
parent a4a989e5b7
commit 70b5c653d0
13 changed files with 109 additions and 26 deletions

View File

@@ -5276,6 +5276,9 @@ void dp_rx_err_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
uint16_t msdu_len, nbuf_len;
uint8_t *rx_tlv_hdr;
struct hal_rx_msdu_metadata msdu_metadata;
uint16_t buf_size;
buf_size = wlan_cfg_rx_buffer_size(soc->wlan_cfg_ctx);
if (qdf_unlikely(packetdump_cb)) {
rx_tlv_hdr = qdf_nbuf_data(nbuf);
@@ -5293,8 +5296,7 @@ void dp_rx_err_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
if (set_pktlen) {
msdu_len = nbuf_len + skip_size;
qdf_nbuf_set_pktlen(nbuf, qdf_min(msdu_len,
(uint16_t)RX_DATA_BUFFER_SIZE));
qdf_nbuf_set_pktlen(nbuf, qdf_min(msdu_len, buf_size));
}
qdf_nbuf_pull_head(nbuf, skip_size);