qcacld-3.0: Move Use skb_orphan in TX to DP component
Move change Ic8dfdb09c73a1071678612430fff2f23180ad336 Use skb_orphan instead of skb_unshare in TX to DP component Change-Id: I0372a5c58f96a40d81a6670f507870dbfac63170 CRs-Fixed: 3226184
This commit is contained in:

committed by
Madan Koyyalamudi

parent
0852d9a8a6
commit
7247a495d5
@@ -423,6 +423,7 @@ void dp_get_tx_resource(struct wlan_dp_intf *dp_intf,
|
||||
struct qdf_mac_addr *mac_addr);
|
||||
|
||||
#else
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0))
|
||||
/**
|
||||
* dp_nbuf_orphan() - skb_unshare a cloned packed else skb_orphan
|
||||
* @dp_intf: pointer to DP interface
|
||||
@@ -434,17 +435,13 @@ static inline
|
||||
qdf_nbuf_t dp_nbuf_orphan(struct wlan_dp_intf *dp_intf,
|
||||
qdf_nbuf_t nbuf)
|
||||
{
|
||||
qdf_nbuf_t nskb;
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0))
|
||||
struct wlan_dp_psoc_context *dp_ctx = dp_intf->dp_ctx;
|
||||
#endif
|
||||
int cpu;
|
||||
|
||||
dp_nbuf_fill_gso_size(dp_intf->dev, nbuf);
|
||||
|
||||
nskb = __qdf_nbuf_unshare(nbuf);
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0))
|
||||
if (unlikely(dp_ctx->dp_cfg.tx_orphan_enable) && nskb == nbuf) {
|
||||
if (unlikely(dp_ctx->dp_cfg.tx_orphan_enable) ||
|
||||
qdf_nbuf_is_cloned(nbuf)) {
|
||||
/*
|
||||
* For UDP packets we want to orphan the packet to allow the app
|
||||
* to send more packets. The flow would ultimately be controlled
|
||||
@@ -454,9 +451,21 @@ qdf_nbuf_t dp_nbuf_orphan(struct wlan_dp_intf *dp_intf,
|
||||
++dp_intf->dp_stats.tx_rx_stats.per_cpu[cpu].tx_orphaned;
|
||||
qdf_nbuf_orphan(nbuf);
|
||||
}
|
||||
#endif
|
||||
return nbuf;
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
qdf_nbuf_t dp_nbuf_orphan(struct wlan_dp_intf *dp_intf,
|
||||
qdf_nbuf_t nbuf)
|
||||
{
|
||||
qdf_nbuf_t nskb;
|
||||
|
||||
dp_nbuf_fill_gso_size(dp_intf->dev, nbuf);
|
||||
nskb = __qdf_nbuf_unshare(nbuf);
|
||||
|
||||
return nskb;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* dp_get_tx_resource() - check tx resources and take action
|
||||
|
Reference in New Issue
Block a user