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
这个提交包含在:
Namita Nair
2022-05-26 19:11:08 -07:00
提交者 Madan Koyyalamudi
父节点 a6e3a5d17a
当前提交 bea8ec9686

查看文件

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