diff options
| author | Yun Park <yunp@codeaurora.org> | 2017-06-14 15:16:49 -0700 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-08-04 02:24:14 -0700 |
| commit | f16ab0feacc1ee23802dff3ac912291524136fc0 (patch) | |
| tree | b2ade568f287ab925bbc8d12516da420b78efbf7 | |
| parent | 8705a966ec230070efda5dd64eb05f1c4eb19ff5 (diff) | |
qcacmn: Add IPA ownership clear for Intra-BSS Tx packets
Set IPA ownership for intra-BSS Tx packets to avoid skb_orphan(), and
clear the ownership after check it to avoid ipa_free_skb() is called
when Tx completed.
Change-Id: I03883773e418bb5518ea63a324d22503173ea436
CRs-Fixed: 2064191
| -rw-r--r-- | qdf/inc/qdf_nbuf.h | 5 | ||||
| -rw-r--r-- | qdf/linux/src/i_qdf_nbuf.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qdf/inc/qdf_nbuf.h b/qdf/inc/qdf_nbuf.h index fffe5cccf799..d697f33676fc 100644 --- a/qdf/inc/qdf_nbuf.h +++ b/qdf/inc/qdf_nbuf.h @@ -502,6 +502,11 @@ static inline void qdf_nbuf_ipa_owned_set(qdf_nbuf_t buf) __qdf_nbuf_ipa_owned_set(buf); } +static inline void qdf_nbuf_ipa_owned_clear(qdf_nbuf_t buf) +{ + __qdf_nbuf_ipa_owned_clear(buf); +} + static inline int qdf_nbuf_ipa_priv_get(qdf_nbuf_t buf) { return __qdf_nbuf_ipa_priv_get(buf); diff --git a/qdf/linux/src/i_qdf_nbuf.h b/qdf/linux/src/i_qdf_nbuf.h index 5fe43361d4d6..52b72986f622 100644 --- a/qdf/linux/src/i_qdf_nbuf.h +++ b/qdf/linux/src/i_qdf_nbuf.h @@ -429,6 +429,9 @@ typedef void (*qdf_nbuf_free_t)(__qdf_nbuf_t); #define __qdf_nbuf_ipa_owned_set(skb) \ (QDF_NBUF_CB_TX_IPA_OWNED(skb) = 1) +#define __qdf_nbuf_ipa_owned_clear(skb) \ + (QDF_NBUF_CB_TX_IPA_OWNED(skb) = 0) + #define __qdf_nbuf_ipa_priv_get(skb) \ QDF_NBUF_CB_TX_IPA_PRIV(skb) |
