qcacmn: Handle the nbuf sanity failure gracefully

Th nbuf sanity can fail in case when HW posts the
same buffer twice. This case can be handled gracefully
by just skipping the processing of the corresponding rx
descriptor.

Change-Id: I471bb9f364a51937e85249996e427f15872bda97
CRs-Fixed: 2738558
This commit is contained in:
Rakesh Pillai
2020-07-23 00:13:13 +05:30
committed by snandini
parent e344f80463
commit d7a0b3f14c
4 changed files with 28 additions and 8 deletions

View File

@@ -108,6 +108,7 @@ struct dp_rx_desc_dbg_info {
* @in_use rx_desc is in use
* @unmapped used to mark rx_desc an unmapped if the corresponding
* nbuf is already unmapped
* @in_err_state : Nbuf sanity failed for this descriptor.
*/
struct dp_rx_desc {
qdf_nbuf_t nbuf;
@@ -119,7 +120,8 @@ struct dp_rx_desc {
struct dp_rx_desc_dbg_info *dbg_info;
#endif
uint8_t in_use:1,
unmapped:1;
unmapped:1,
in_err_state:1;
};
/* RX Descriptor Multi Page memory alloc related */