qcacmn: Change order of SAWF enabled conditional check

Legacy SCS uses skb mark field to specify the priority i.e TID.
This feature is to be supported independent of SAWF framework.
Therefore change the order of SAWF enabled conditional check.

Change-Id: I445f697395c8140b3b9fd7f877dfa8d057f0eaa8
CRs-Fixed: 3630722
This commit is contained in:
Harsh Kumar Bijlani
2023-09-29 18:45:15 +05:30
committad av Rahul Choudhary
förälder c3697eb2a0
incheckning 8616350ebe
2 ändrade filer med 6 tillägg och 6 borttagningar

Visa fil

@@ -979,9 +979,6 @@ void dp_sawf_config_be(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
{
uint8_t q_id = 0;
if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
return;
q_id = dp_sawf_queue_id_get(nbuf);
if (q_id == DP_SAWF_DEFAULT_Q_INVALID)
@@ -994,6 +991,9 @@ void dp_sawf_config_be(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
(q_id < DP_SAWF_DEFAULT_QUEUE_MAX))
return;
if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
return;
dp_sawf_tcl_cmd(fw_metadata, nbuf);
hal_tx_desc_set_flow_override_enable(hal_tx_desc_cached,
DP_TX_FLOW_OVERRIDE_ENABLE);

Visa fil

@@ -406,9 +406,6 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
uint8_t q_id = 0;
uint32_t flow_idx = 0;
if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
return;
q_id = dp_sawf_queue_id_get(nbuf);
if (q_id == DP_SAWF_DEFAULT_Q_INVALID)
return;
@@ -421,6 +418,9 @@ void dp_sawf_config_li(struct dp_soc *soc, uint32_t *hal_tx_desc_cached,
(q_id < DP_SAWF_DEFAULT_QUEUE_MAX))
return;
if (!wlan_cfg_get_sawf_config(soc->wlan_cfg_ctx))
return;
dp_sawf_tcl_cmd(fw_metadata, nbuf);
/* For SAWF, q_id starts from DP_SAWF_Q_MAX */