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
This commit is contained in:

committed by
Madan Koyyalamudi

parent
11df417c3b
commit
cea862a118
@@ -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));
|
qdf_mem_set(nbuf_copy->cb, 0x0, sizeof(nbuf_copy->cb));
|
||||||
dp_classify_critical_pkts(soc, ta_peer->vdev, nbuf_copy);
|
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,
|
if (soc->arch_ops.dp_rx_intrabss_handle_nawds(soc, ta_peer, nbuf_copy,
|
||||||
tid_stats))
|
tid_stats))
|
||||||
return false;
|
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));
|
qdf_mem_set(nbuf->cb, 0x0, sizeof(nbuf->cb));
|
||||||
dp_classify_critical_pkts(soc, ta_peer->vdev, nbuf);
|
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,
|
if (!dp_tx_send((struct cdp_soc_t *)soc,
|
||||||
tx_vdev_id, nbuf)) {
|
tx_vdev_id, nbuf)) {
|
||||||
DP_PEER_PER_PKT_STATS_INC_PKT(ta_peer, rx.intra_bss.pkts, 1,
|
DP_PEER_PER_PKT_STATS_INC_PKT(ta_peer, rx.intra_bss.pkts, 1,
|
||||||
|
@@ -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,
|
static inline void dp_tx_get_queue(struct dp_vdev *vdev,
|
||||||
qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
|
qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
|
||||||
{
|
{
|
||||||
uint16_t queue_offset = qdf_nbuf_get_queue_mapping(nbuf) &
|
queue->ring_id = qdf_get_cpu();
|
||||||
DP_TX_QUEUE_MASK;
|
queue->desc_pool_id = queue->ring_id;
|
||||||
|
|
||||||
queue->desc_pool_id = queue_offset;
|
|
||||||
queue->ring_id = qdf_nbuf_get_queue_mapping(nbuf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user