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
Este cometimento está contido em:

cometido por
Madan Koyyalamudi

ascendente
0852d9a8a6
cometimento
7247a495d5
@@ -423,6 +423,7 @@ void dp_get_tx_resource(struct wlan_dp_intf *dp_intf,
|
|||||||
struct qdf_mac_addr *mac_addr);
|
struct qdf_mac_addr *mac_addr);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0))
|
||||||
/**
|
/**
|
||||||
* dp_nbuf_orphan() - skb_unshare a cloned packed else skb_orphan
|
* dp_nbuf_orphan() - skb_unshare a cloned packed else skb_orphan
|
||||||
* @dp_intf: pointer to DP interface
|
* @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 dp_nbuf_orphan(struct wlan_dp_intf *dp_intf,
|
||||||
qdf_nbuf_t nbuf)
|
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;
|
struct wlan_dp_psoc_context *dp_ctx = dp_intf->dp_ctx;
|
||||||
#endif
|
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
dp_nbuf_fill_gso_size(dp_intf->dev, nbuf);
|
dp_nbuf_fill_gso_size(dp_intf->dev, nbuf);
|
||||||
|
|
||||||
nskb = __qdf_nbuf_unshare(nbuf);
|
if (unlikely(dp_ctx->dp_cfg.tx_orphan_enable) ||
|
||||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 19, 0))
|
qdf_nbuf_is_cloned(nbuf)) {
|
||||||
if (unlikely(dp_ctx->dp_cfg.tx_orphan_enable) && nskb == nbuf) {
|
|
||||||
/*
|
/*
|
||||||
* For UDP packets we want to orphan the packet to allow the app
|
* For UDP packets we want to orphan the packet to allow the app
|
||||||
* to send more packets. The flow would ultimately be controlled
|
* 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;
|
++dp_intf->dp_stats.tx_rx_stats.per_cpu[cpu].tx_orphaned;
|
||||||
qdf_nbuf_orphan(nbuf);
|
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;
|
return nskb;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_get_tx_resource() - check tx resources and take action
|
* dp_get_tx_resource() - check tx resources and take action
|
||||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador