net/bnxt: fix VLAN/VXLAN encapsulation header size
[dpdk.git] / drivers / net / bnxt / tf_ulp / bnxt_tf_common.h
index 3516df4..b2629e4 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef _BNXT_TF_COMMON_H_
 #define _BNXT_TF_COMMON_H_
 
+#include <inttypes.h>
+
+#include "bnxt_ulp.h"
+#include "ulp_template_db_enum.h"
+
 #define BNXT_TF_DBG(lvl, fmt, args...) PMD_DRV_LOG(lvl, fmt, ## args)
 
 #define BNXT_ULP_EM_FLOWS                      8192
 #define        BNXT_ULP_TX_NUM_FLOWS                   32
 #define        BNXT_ULP_TX_TBL_IF_ID                   0
 
+enum bnxt_tf_rc {
+       BNXT_TF_RC_PARSE_ERR    = -2,
+       BNXT_TF_RC_ERROR        = -1,
+       BNXT_TF_RC_SUCCESS      = 0,
+       BNXT_TF_RC_NORMAL       = 1,
+       BNXT_TF_RC_FID          = 2,
+};
+
+/* eth IPv4 Type */
+enum bnxt_ulp_eth_ip_type {
+       BNXT_ULP_ETH_IPV4 = 4,
+       BNXT_ULP_ETH_IPV6 = 5,
+       BNXT_ULP_MAX_ETH_IP_TYPE = 0
+};
+
+/* ulp direction Type */
+enum bnxt_ulp_direction_type {
+       BNXT_ULP_DIR_INVALID,
+       BNXT_ULP_DIR_INGRESS,
+       BNXT_ULP_DIR_EGRESS,
+};
+
+/* enumeration of the interface types */
+enum bnxt_ulp_intf_type {
+       BNXT_ULP_INTF_TYPE_INVALID = 0,
+       BNXT_ULP_INTF_TYPE_PF,
+       BNXT_ULP_INTF_TYPE_TRUSTED_VF,
+       BNXT_ULP_INTF_TYPE_VF,
+       BNXT_ULP_INTF_TYPE_PF_REP,
+       BNXT_ULP_INTF_TYPE_VF_REP,
+       BNXT_ULP_INTF_TYPE_PHY_PORT,
+       BNXT_ULP_INTF_TYPE_LAST
+};
+
 struct bnxt_ulp_mark_tbl *
 bnxt_ulp_cntxt_ptr2_mark_db_get(struct bnxt_ulp_context *ulp_ctx);