Browse Source

qcacmn: map tx ring to get_cpu instead of skb queue

skb queue is not always mapped to the proper CPU
hence it is good to map the ring_id to CPU through get_cpu
API.

Change-Id: I3bf76452cc1fcb2033ef1a8640c4dd31ecba61b3
CRs-Fixed: 3255144
Tallapragada Kalyan 2 years ago
parent
commit
cea862a118
2 changed files with 2 additions and 7 deletions
  1. 0 2
      dp/wifi3.0/dp_rx.c
  2. 2 5
      dp/wifi3.0/dp_tx.h

+ 0 - 2
dp/wifi3.0/dp_rx.c

@@ -889,7 +889,6 @@ bool dp_rx_intrabss_mcbc_fwd(struct dp_soc *soc, struct dp_txrx_peer *ta_peer,
 	qdf_mem_set(nbuf_copy->cb, 0x0, sizeof(nbuf_copy->cb));
 	dp_classify_critical_pkts(soc, ta_peer->vdev, nbuf_copy);
 
-	dp_rx_nbuf_queue_mapping_set(nbuf_copy, qdf_get_cpu());
 	if (soc->arch_ops.dp_rx_intrabss_handle_nawds(soc, ta_peer, nbuf_copy,
 						      tid_stats))
 		return false;
@@ -954,7 +953,6 @@ bool dp_rx_intrabss_ucast_fwd(struct dp_soc *soc, struct dp_txrx_peer *ta_peer,
 	qdf_mem_set(nbuf->cb, 0x0, sizeof(nbuf->cb));
 	dp_classify_critical_pkts(soc, ta_peer->vdev, nbuf);
 
-	dp_rx_nbuf_queue_mapping_set(nbuf, qdf_get_cpu());
 	if (!dp_tx_send((struct cdp_soc_t *)soc,
 			tx_vdev_id, nbuf)) {
 		DP_PEER_PER_PKT_STATS_INC_PKT(ta_peer, rx.intra_bss.pkts, 1,

+ 2 - 5
dp/wifi3.0/dp_tx.h

@@ -522,11 +522,8 @@ static inline enum qdf_dp_tx_rx_status dp_tx_hw_to_qdf(uint16_t status)
 static inline void dp_tx_get_queue(struct dp_vdev *vdev,
 				   qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
 {
-	uint16_t queue_offset = qdf_nbuf_get_queue_mapping(nbuf) &
-				DP_TX_QUEUE_MASK;
-
-	queue->desc_pool_id = queue_offset;
-	queue->ring_id = qdf_nbuf_get_queue_mapping(nbuf);
+	queue->ring_id = qdf_get_cpu();
+	queue->desc_pool_id = queue->ring_id;
 }
 
 /*