common/cnxk: add lower bound check for SSO resources
[dpdk.git] / drivers / common / cnxk / roc_npc_priv.h
index 23e8675..78d6ee8 100644 (file)
@@ -189,6 +189,7 @@ struct npc_parse_state {
        /* adjust ltype in MCAM to match at least one vlan */
        bool set_vlan_ltype_mask;
        bool set_ipv6ext_ltype_mask;
+       bool is_second_pass_rule;
 };
 
 enum npc_kpu_parser_flag {
@@ -380,7 +381,6 @@ struct npc {
        uint16_t flow_prealloc_size;            /* Pre allocated mcam size */
        uint16_t flow_max_priority;             /* Max priority for flow */
        uint16_t switch_header_type; /* Supported switch header type */
-       uint32_t mark_actions;       /* Number of mark actions */
        uint32_t vtag_strip_actions; /* vtag insert/strip actions */
        uint16_t pf_func;            /* pf_func of device */
        npc_dxcfg_t prx_dxcfg;       /* intf, lid, lt, extract */
@@ -422,6 +422,7 @@ void npc_get_hw_supp_mask(struct npc_parse_state *pst,
 int npc_parse_item_basic(const struct roc_npc_item_info *item,
                         struct npc_parse_item_info *info);
 int npc_parse_meta_items(struct npc_parse_state *pst);
+int npc_parse_mark_item(struct npc_parse_state *pst);
 int npc_parse_pre_l2(struct npc_parse_state *pst);
 int npc_parse_higig2_hdr(struct npc_parse_state *pst);
 int npc_parse_cpt_hdr(struct npc_parse_state *pst);