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
This commit is contained in:
Sathish Kumar 2016-08-23 11:29:19 +05:30 • committed by qcabuildsw
commit eb7d24e1f6

View file

@ -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