qcacld-3.0: Optimize code block under lock

Current code calls wlan_hdd_select_queue(dev, nbuf)
inside the netif_tx_lock(dev). But the logic does
not need to hold this lock.

Move the function call outside of the lock,
to optimize the critical section.

Change-Id: Id3b86ec82e9583e8d91b0a0f28f951ea192c3f06
CRs-Fixed: 3207147
This commit is contained in:
Namita Nair
2022-05-26 19:11:08 -07:00
committed by Madan Koyyalamudi
parent a6e3a5d17a
commit bea8ec9686

View File

@@ -24261,9 +24261,9 @@ static int __wlan_hdd_cfg80211_tx_control_port(struct wiphy *wiphy,
nbuf->protocol = htons(ETH_P_PAE);
skb_reset_network_header(nbuf);
skb_reset_mac_header(nbuf);
skb_set_queue_mapping(nbuf, wlan_hdd_select_queue(dev, nbuf));
netif_tx_lock(dev);
skb_set_queue_mapping(nbuf, wlan_hdd_select_queue(dev, nbuf));
dev->netdev_ops->ndo_start_xmit(nbuf, dev);
netif_tx_unlock(dev);