qcacmn: Check for equal case in nbuf len sanity

MSDU with len 1654 is received in the REO2SW ring and
the total len of the pkt would be 1654 + 392 (pkt tlvs)
+ 2 (l2 hdr padding) = 2048bytes. The nbuf len sanity
checks for strictly less than 2048 bytes which results
in the assertion failure.

Fix is to add the equal case when validating the
nbuf len.

Change-Id: I7e5d1df10339c8d7908a12001c2322028965a8fe
CRs-Fixed: 2916351
Этот коммит содержится в:
Yeshwanth Sriram Guntuka
2021-04-06 18:03:24 +05:30
коммит произвёл snandini
родитель c36e8ad74f
Коммит a5e6565dd6

Просмотреть файл

@@ -1939,7 +1939,7 @@ dp_rx_desc_nbuf_len_sanity_check(struct dp_soc *soc,
struct rx_desc_pool *rx_desc_pool; struct rx_desc_pool *rx_desc_pool;
rx_desc_pool = &soc->rx_desc_buf[0]; rx_desc_pool = &soc->rx_desc_buf[0];
qdf_assert_always(pkt_len < rx_desc_pool->buf_size); qdf_assert_always(pkt_len <= rx_desc_pool->buf_size);
} }
#else #else
static inline static inline