qcacmn: Add alignment of 4 bytes back
This reverts commit Ib680547d2bcfe57b6eadda5301677d68e4a931a4 Change-Id: Iffc7f2cdab2d1015db4b3f0dfc0ea697e0388238 CRs-Fixed: 3552537
This commit is contained in:

committed by
Rahul Choudhary

parent
a3a5a72bbd
commit
6ca74c40fd
@@ -520,8 +520,7 @@ void war_ce_src_ring_write_idx_set(struct hif_softc *scn,
|
||||
* @priority: TBD
|
||||
* @src_nentries: #entries in source ring - Must be a power of 2
|
||||
* @src_sz_max: Max source send size for this CE. This is also the minimum
|
||||
* size of a destination buffer. This should be a factor of 4
|
||||
* for alignment during nbuf alloc.
|
||||
* size of a destination buffer
|
||||
* @dest_nentries: #entries in destination ring - Must be a power of 2
|
||||
* @reserved: Future Use
|
||||
*/
|
||||
|
@@ -188,7 +188,6 @@ struct CE_state {
|
||||
/*Record the state of the copy compl interrupt */
|
||||
int disable_copy_compl_intr;
|
||||
|
||||
/* src_sz_max should be a factor of 4 for alignment during nbuf alloc */
|
||||
unsigned int src_sz_max;
|
||||
struct CE_ring_state *src_ring;
|
||||
struct CE_ring_state *dest_ring;
|
||||
|
@@ -3555,7 +3555,7 @@ QDF_STATUS hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info)
|
||||
hif_record_ce_desc_event(scn, ce_id,
|
||||
HIF_RX_DESC_PRE_NBUF_ALLOC, NULL, NULL,
|
||||
0, 0);
|
||||
nbuf = qdf_nbuf_alloc(scn->qdf_dev, buf_sz, 0, 0, false);
|
||||
nbuf = qdf_nbuf_alloc(scn->qdf_dev, buf_sz, 0, 4, false);
|
||||
if (!nbuf) {
|
||||
hif_post_recv_buffers_failure(pipe_info, nbuf,
|
||||
&pipe_info->nbuf_alloc_err_count,
|
||||
|
Reference in New Issue
Block a user