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/mlx5: fix meter policy flow match item
[dpdk.git]
/
drivers
/
net
/
bnxt
/
tf_ulp
/
ulp_mapper.h
diff --git
a/drivers/net/bnxt/tf_ulp/ulp_mapper.h
b/drivers/net/bnxt/tf_ulp/ulp_mapper.h
index
8f0b894
..
004e89a
100644
(file)
--- a/
drivers/net/bnxt/tf_ulp/ulp_mapper.h
+++ b/
drivers/net/bnxt/tf_ulp/ulp_mapper.h
@@
-22,11
+22,12
@@
struct bnxt_ulp_mapper_glb_resource_entry {
enum bnxt_ulp_resource_func resource_func;
uint32_t resource_type; /* TF_ enum type */
uint64_t resource_hndl;
enum bnxt_ulp_resource_func resource_func;
uint32_t resource_type; /* TF_ enum type */
uint64_t resource_hndl;
+ bool shared;
};
struct bnxt_ulp_mapper_data {
struct bnxt_ulp_mapper_glb_resource_entry
};
struct bnxt_ulp_mapper_data {
struct bnxt_ulp_mapper_glb_resource_entry
- glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_R
ESOURCE_TBL_MAX_SZ
];
+ glb_res_tbl[TF_DIR_MAX][BNXT_ULP_GLB_R
F_IDX_LAST
];
struct ulp_mapper_gen_tbl_list gen_tbl_list[BNXT_ULP_GEN_TBL_MAX_SZ];
};
struct ulp_mapper_gen_tbl_list gen_tbl_list[BNXT_ULP_GEN_TBL_MAX_SZ];
};
@@
-45,9
+46,8
@@
struct bnxt_ulp_mapper_parms {
struct ulp_rte_hdr_bitmap *hdr_bitmap;
struct ulp_rte_hdr_field *hdr_field;
struct ulp_rte_field_bitmap *fld_bitmap;
struct ulp_rte_hdr_bitmap *hdr_bitmap;
struct ulp_rte_hdr_field *hdr_field;
struct ulp_rte_field_bitmap *fld_bitmap;
- uint
32
_t *comp_fld;
+ uint
64
_t *comp_fld;
struct ulp_regfile *regfile;
struct ulp_regfile *regfile;
- struct tf *tfp;
struct bnxt_ulp_context *ulp_ctx;
uint32_t fid;
enum bnxt_ulp_fdb_type flow_type;
struct bnxt_ulp_context *ulp_ctx;
uint32_t fid;
enum bnxt_ulp_fdb_type flow_type;
@@
-60,13
+60,15
@@
struct bnxt_ulp_mapper_parms {
uint64_t shared_hndl;
uint32_t flow_pattern_id;
uint32_t act_pattern_id;
uint64_t shared_hndl;
uint32_t flow_pattern_id;
uint32_t act_pattern_id;
+ uint8_t app_id;
+ uint16_t port_id;
};
struct bnxt_ulp_mapper_create_parms {
uint32_t app_priority;
struct ulp_rte_hdr_bitmap *hdr_bitmap;
struct ulp_rte_hdr_field *hdr_field;
};
struct bnxt_ulp_mapper_create_parms {
uint32_t app_priority;
struct ulp_rte_hdr_bitmap *hdr_bitmap;
struct ulp_rte_hdr_field *hdr_field;
- uint
32
_t *comp_fld;
+ uint
64
_t *comp_fld;
struct ulp_rte_act_bitmap *act;
struct ulp_rte_act_prop *act_prop;
struct ulp_rte_field_bitmap *fld_bitmap;
struct ulp_rte_act_bitmap *act;
struct ulp_rte_act_prop *act_prop;
struct ulp_rte_field_bitmap *fld_bitmap;
@@
-82,11
+84,13
@@
struct bnxt_ulp_mapper_create_parms {
/* if set then create a parent flow */
uint32_t parent_flow;
uint8_t tun_idx;
/* if set then create a parent flow */
uint32_t parent_flow;
uint8_t tun_idx;
+ uint64_t shared_hndl;
/* support pattern based rejection */
uint32_t flow_pattern_id;
uint32_t act_pattern_id;
/* support pattern based rejection */
uint32_t flow_pattern_id;
uint32_t act_pattern_id;
-
+ uint8_t app_id;
+ uint16_t port_id;
};
/* Function to initialize any dynamic mapper data. */
};
/* Function to initialize any dynamic mapper data. */
@@
-120,4
+124,10
@@
ulp_mapper_resources_free(struct bnxt_ulp_context *ulp_ctx,
enum bnxt_ulp_fdb_type flow_type,
uint32_t fid);
enum bnxt_ulp_fdb_type flow_type,
uint32_t fid);
+int32_t
+ulp_mapper_get_shared_fid(struct bnxt_ulp_context *ulp,
+ uint32_t id,
+ uint16_t key,
+ uint32_t *fid);
+
#endif /* _ULP_MAPPER_H_ */
#endif /* _ULP_MAPPER_H_ */