From eb7d24e1f69290c9d296644cfce44f1849ba696d Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Tue, 23 Aug 2016 11:29:19 +0530 Subject: [PATCH] qcacmn: Add new ftype enums to distinguish rx stats information Introduce new enum in ftype to identify rx stats data pointed by fctx. It is added so that only a pointer to the feature specific data can be stored in fctx. ftype will be used to identify what feature in currently being pointed to by fctx . Change-Id: Ic4d8e23c27873875a9cac25e9a5c26096b1705f3 CRs-Fixed: 1055391 --- qdf/linux/src/i_qdf_nbuf.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qdf/linux/src/i_qdf_nbuf.h b/qdf/linux/src/i_qdf_nbuf.h index af7451eb8dd3..bb970024e4b1 100644 --- a/qdf/linux/src/i_qdf_nbuf.h +++ b/qdf/linux/src/i_qdf_nbuf.h @@ -449,12 +449,28 @@ void __qdf_nbuf_num_frags_init(struct sk_buff *skb) QDF_NBUF_CB_TX_NUM_EXTRA_FRAGS(skb) = 0; } +#ifdef CONFIG_MCL typedef enum { + CB_FTYPE_INVALID = 0, CB_FTYPE_MCAST2UCAST = 1, CB_FTYPE_TSO = 2, CB_FTYPE_TSO_SG = 3, CB_FTYPE_SG = 4, } CB_FTYPE; +#else +typedef enum { + CB_FTYPE_INVALID = 0, + CB_FTYPE_MCAST2UCAST = 1, + CB_FTYPE_TSO = 2, + CB_FTYPE_TSO_SG = 3, + CB_FTYPE_SG = 4, +#if ATH_DATA_RX_INFO_EN + CB_FTYPE_RX_INFO = 5, +#else + CB_FTYPE_MESH_RX_INFO = 5, +#endif +} CB_FTYPE; +#endif /* * prototypes. Implemented in qdf_nbuf.c