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
Dieser Commit ist enthalten in:
Harsh Kumar Bijlani
2023-09-29 18:45:15 +05:30
committet von Rahul Choudhary
Ursprung c3697eb2a0
Commit 8616350ebe
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen

Datei anzeigen

@@ -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);

Datei anzeigen

@@ -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 */