qcacmn: Add compile time macro to disable rx_pkt_hdr_tlv

Do not process  RX packet header TLV for low memory config profile.
Also, drop decapped frames in invalid peer processing function.

Change-Id: Ifc7721bb25d85c7e277bebf4b962d2f1bfea150c
CRs-Fixed: 2395508
This commit is contained in:
Shashikala Prabhu
2019-03-08 11:37:15 +05:30
committed by nshrivas
parent dddd95f2e9
commit e11412df5c
4 changed files with 121 additions and 51 deletions

View File

@@ -25,7 +25,11 @@
#include "dp_internal.h"
#ifdef RXDMA_OPTIMIZATION
#ifdef NO_RX_PKT_HDR_TLV
#define RX_BUFFER_ALIGNMENT 0
#else
#define RX_BUFFER_ALIGNMENT 128
#endif /* NO_RX_PKT_HDR_TLV */
#else /* RXDMA_OPTIMIZATION */
#define RX_BUFFER_ALIGNMENT 4
#endif /* RXDMA_OPTIMIZATION */
@@ -51,7 +55,6 @@
#define DP_RX_DESC_ALLOC_MULTIPLIER 3
#endif /* QCA_HOST2FW_RXBUF_RING */
#define RX_BUFFER_SIZE 2048
#define RX_BUFFER_RESERVATION 0
#define DP_PEER_METADATA_PEER_ID_MASK 0x0000ffff