net/bnxt: aggregate ULP mapper create arguments
[dpdk.git] / drivers / net / bnxt / tf_ulp / ulp_mapper.h
index 5f3d46e..24727a3 100644 (file)
@@ -38,20 +38,24 @@ struct bnxt_ulp_mapper_parms {
        enum bnxt_ulp_flow_db_tables            tbl_idx;
 };
 
+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 ulp_rte_act_bitmap       *act;
+       struct ulp_rte_act_prop         *act_prop;
+       uint32_t                        class_tid;
+       uint32_t                        act_tid;
+};
+
 /*
  * Function to handle the mapping of the Flow to be compatible
  * with the underlying hardware.
  */
 int32_t
 ulp_mapper_flow_create(struct bnxt_ulp_context *ulp_ctx,
-                      uint32_t         app_priority,
-                      struct ulp_rte_hdr_bitmap  *hdr_bitmap,
-                      struct ulp_rte_hdr_field *hdr_field,
-                      struct ulp_rte_act_bitmap *act,
-                      struct ulp_rte_act_prop *act_prop,
-                      uint32_t         class_tid,
-                      uint32_t         act_tid,
-                      uint32_t         *flow_id);
+                      struct bnxt_ulp_mapper_create_parms *parms,
+                      uint32_t *flowid);
 
 /* Function that frees all resources associated with the flow. */
 int32_t