From dd5a74a70f42494b404acb036de01101430503c7 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Fri, 11 Jan 2019 17:32:49 +0530 Subject: [PATCH] qcacld-3.0: Set skb cb for rx peer cache frames There is a race condition while flushing the rx cache frames from MC thread and same time from RX thread. So for rx cache frames set QDF_NBUF_CB_RX_PEER_CACHED_FRM to avoid using gro receive and use skb receive with local bh disable. Change-Id: I5ece8ddf876d27ad3d24b0ba751fe3e3886608e2 CRs-Fixed: 2378342 --- core/dp/txrx/ol_txrx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index a5d01e060b79..f901d730e411 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -4646,6 +4646,7 @@ static QDF_STATUS ol_txrx_enqueue_rx_frames( buf = rx_buf_list; while (buf) { + QDF_NBUF_CB_RX_PEER_CACHED_FRM(buf) = 1; next_buf = qdf_nbuf_queue_next(buf); cache_buf = qdf_mem_malloc(sizeof(*cache_buf)); if (!cache_buf) {