qcacmn: Add framework to configure varying data/monitor buf size
Add a framework to configure varying buffer size for both data and monitor buffers. For example, with this framework, the user can configure 2K SKB for Data buffers, monitor status rings, monitor descriptor rings, monitor destination rings and 4K SKB for monitor buffers through compile time. Change-Id: I212d04ff6907e71e9c80b69834aa07ecc6db4d2e CRs-Fixed: 2604646
This commit is contained in:

committad av
nshrivas

förälder
b1261d4e0c
incheckning
03a9f5b19c
@@ -1831,16 +1831,16 @@ static qdf_nbuf_t dp_ipa_frag_nbuf_linearize(struct dp_soc *soc,
|
||||
bool is_nbuf_head = true;
|
||||
uint32_t copy_len = 0;
|
||||
|
||||
dst_nbuf = qdf_nbuf_alloc(soc->osdev, RX_BUFFER_SIZE,
|
||||
RX_BUFFER_RESERVATION, RX_BUFFER_ALIGNMENT,
|
||||
FALSE);
|
||||
dst_nbuf = qdf_nbuf_alloc(soc->osdev, RX_DATA_BUFFER_SIZE,
|
||||
RX_BUFFER_RESERVATION,
|
||||
RX_DATA_BUFFER_ALIGNMENT, FALSE);
|
||||
|
||||
if (!dst_nbuf) {
|
||||
dp_err_rl("nbuf allocate fail");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((nbuf_len + L3_HEADER_PADDING) > RX_BUFFER_SIZE) {
|
||||
if ((nbuf_len + L3_HEADER_PADDING) > RX_DATA_BUFFER_SIZE) {
|
||||
qdf_nbuf_free(dst_nbuf);
|
||||
dp_err_rl("nbuf is jumbo data");
|
||||
return NULL;
|
||||
|
Referens i nytt ärende
Block a user