git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/sfc: fence off 8 bits in Rx mark for tunnel offload
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_core
/
tf_core.h
diff --git
a/drivers/net/bnxt/tf_core/tf_core.h
b/drivers/net/bnxt/tf_core/tf_core.h
index
7e0cdf7
..
fb02c2b
100644
(file)
--- a/
drivers/net/bnxt/tf_core/tf_core.h
+++ b/
drivers/net/bnxt/tf_core/tf_core.h
@@
-65,6
+65,16
@@
enum tf_ext_mem_chan_type {
TF_EXT_MEM_CHAN_TYPE_MAX
};
TF_EXT_MEM_CHAN_TYPE_MAX
};
+/**
+ * WC TCAM number of slice per row that devices supported
+ */
+enum tf_wc_num_slice {
+ TF_WC_TCAM_1_SLICE_PER_ROW = 1,
+ TF_WC_TCAM_2_SLICE_PER_ROW = 2,
+ TF_WC_TCAM_4_SLICE_PER_ROW = 4,
+ TF_WC_TCAM_8_SLICE_PER_ROW = 8,
+};
+
/**
* EEM record AR helper
*
/**
* EEM record AR helper
*
@@
-283,9
+293,9
@@
enum tf_tbl_type {
TF_TBL_TYPE_ACT_MODIFY_32B,
/** TH 64B Modify Record */
TF_TBL_TYPE_ACT_MODIFY_64B,
TF_TBL_TYPE_ACT_MODIFY_32B,
/** TH 64B Modify Record */
TF_TBL_TYPE_ACT_MODIFY_64B,
- /**
(Future)
Meter Profiles */
+ /** Meter Profiles */
TF_TBL_TYPE_METER_PROF,
TF_TBL_TYPE_METER_PROF,
- /**
(Future)
Meter Instance */
+ /** Meter Instance */
TF_TBL_TYPE_METER_INST,
/** Wh+/SR/Th Mirror Config */
TF_TBL_TYPE_MIRROR_CONFIG,
TF_TBL_TYPE_METER_INST,
/** Wh+/SR/Th Mirror Config */
TF_TBL_TYPE_MIRROR_CONFIG,
@@
-301,6
+311,8
@@
enum tf_tbl_type {
TF_TBL_TYPE_EM_FKB,
/** TH WC Flexible Key builder */
TF_TBL_TYPE_WC_FKB,
TF_TBL_TYPE_EM_FKB,
/** TH WC Flexible Key builder */
TF_TBL_TYPE_WC_FKB,
+ /** Meter Drop Counter */
+ TF_TBL_TYPE_METER_DROP_CNT,
/* External */
/* External */
@@
-668,6
+680,13
@@
struct tf_open_session_parms {
*/
void *bp;
*/
void *bp;
+ /**
+ * [in]
+ *
+ * The number of slices per row for WC TCAM entry.
+ */
+ enum tf_wc_num_slice wc_num_slices;
+
/**
* [out] shared_session_creator
*
/**
* [out] shared_session_creator
*
@@
-732,8
+751,6
@@
int tf_open_session(struct tf *tfp,
/**
* General internal resource info
*
/**
* General internal resource info
*
- * TODO: remove tf_rm_new_entry structure and use this structure
- * internally.
*/
struct tf_resource_info {
uint16_t start;
*/
struct tf_resource_info {
uint16_t start;
@@
-1654,12
+1671,7
@@
struct tf_alloc_tbl_entry_parms {
* entry of the indicated type for this TruFlow session.
*
* Allocates an index table record. This function will attempt to
* entry of the indicated type for this TruFlow session.
*
* Allocates an index table record. This function will attempt to
- * allocate an entry or search an index table for a matching entry if
- * search is enabled (only the shadow copy of the table is accessed).
- *
- * If search is not enabled, the first available free entry is
- * returned. If search is enabled and a matching entry to entry_data
- * is found hit is set to TRUE and success is returned.
+ * allocate an index table entry.
*
* External types:
*
*
* External types:
*
@@
-1668,8
+1680,8
@@
struct tf_alloc_tbl_entry_parms {
* Allocates an external index table action record.
*
* NOTE:
* Allocates an external index table action record.
*
* NOTE:
- * Implementation of the internals of th
is function will be a stack with pus
h
- * and pop.
+ * Implementation of the internals of th
e external function will be a stack wit
h
+ *
push
and pop.
*
* Returns success or failure code.
*/
*
* Returns success or failure code.
*/
@@
-1705,20
+1717,15
@@
struct tf_free_tbl_entry_parms {
*
* Internal types:
*
*
* Internal types:
*
- * If session has shadow_copy enabled the shadow DB is searched and if
- * found the element ref_cnt is decremented. If ref_cnt goes to
- * zero then the element is returned to the session pool.
- *
- * If the session does not have a shadow DB the element is free'ed and
- * given back to the session pool.
+ * The element is freed and given back to the session pool.
*
* External types:
*
*
* External types:
*
- * Free
'
s an external index table action record.
+ * Frees an external index table action record.
*
* NOTE:
*
* NOTE:
- * Implementation of the internals of th
is function will be a stack with pus
h
- * and pop.
+ * Implementation of the internals of th
e external table will be a stack wit
h
+ *
push
and pop.
*
* Returns success or failure code.
*/
*
* Returns success or failure code.
*/
@@
-1762,9
+1769,8
@@
struct tf_set_tbl_entry_parms {
/**
* set index table entry
*
/**
* set index table entry
*
- * Used to insert an application programmed index table entry into a
- * previous allocated table location. A shadow copy of the table
- * is maintained (if enabled) (only for internal objects)
+ * Used to set an application programmed index table entry into a
+ * previous allocated table location.
*
* Returns success or failure code.
*/
*
* Returns success or failure code.
*/
@@
-2194,6
+2200,8
@@
enum tf_global_config_type {
TF_TUNNEL_ENCAP, /**< Tunnel Encap Config(TECT) */
TF_ACTION_BLOCK, /**< Action Block Config(ABCR) */
TF_COUNTER_CFG, /**< Counter Configuration (CNTRS_CTRL) */
TF_TUNNEL_ENCAP, /**< Tunnel Encap Config(TECT) */
TF_ACTION_BLOCK, /**< Action Block Config(ABCR) */
TF_COUNTER_CFG, /**< Counter Configuration (CNTRS_CTRL) */
+ TF_METER_CFG, /**< Meter Config(ACTP4_FMTCR) */
+ TF_METER_INTERVAL_CFG, /**< Meter Interval Config(FMTCR_INTERVAL) */
TF_GLOBAL_CFG_TYPE_MAX
};
TF_GLOBAL_CFG_TYPE_MAX
};