From f90c944dadb61904dc21c095f091835e758ba8e7 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Thu, 2 May 2019 18:55:20 +0530 Subject: [PATCH] qcacmn: Access msdu_len from struct cb to avoid cache miss We are accessing nbuf_len field for every nbuf and which causes cache hit as we are accessing it not from 1st cache line. This field is present in struct cb. Lets access it from here to avoid cache miss. Change-Id: I21a81d844a4cc755a0ca0c156bd3f4d5702fd913 CRs-fixed: 2449717 --- dp/wifi3.0/dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index 777654b69dc5..4e320060df06 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1390,7 +1390,7 @@ static void dp_rx_msdu_stats_update(struct dp_soc *soc, uint32_t sgi, mcs, tid, nss, bw, reception_type, pkt_type; struct dp_vdev *vdev = peer->vdev; qdf_ether_header_t *eh; - uint16_t msdu_len = qdf_nbuf_len(nbuf); + uint16_t msdu_len = QDF_NBUF_CB_RX_PKT_LEN(nbuf); peer_id = DP_PEER_METADATA_PEER_ID_GET( hal_rx_mpdu_peer_meta_data_get(rx_tlv_hdr));