net/bnxt: support parent child flow database
[dpdk.git] / drivers / net / bnxt / tf_ulp / ulp_utils.h
index c054a77..898e851 100644 (file)
@@ -11,6 +11,7 @@
 
 #define ULP_BUFFER_ALIGN_8_BYTE                8
 #define ULP_BUFFER_ALIGN_16_BYTE       16
+#define ULP_BUFFER_ALIGN_64_BYTE       64
 
 /*
  * Macros for bitmap sets and gets
@@ -53,6 +54,9 @@
 /* Macro to convert bits to bytes with no round off*/
 #define ULP_BITS_2_BYTE_NR(bits_x)     ((bits_x) / 8)
 
+/* Macro to round off to next multiple of 8*/
+#define ULP_BYTE_ROUND_OFF_8(x)        (((x) + 7) & ~7)
+
 /* Macros to read the computed fields */
 #define ULP_COMP_FLD_IDX_RD(params, idx) \
        rte_be_to_cpu_32((params)->comp_fld[(idx)])