net/hns3: support flow director
[dpdk.git] / drivers / net / mlx5 / mlx5_glue.h
index 6b5dadf..82d6b10 100644 (file)
@@ -9,6 +9,8 @@
 #include <stddef.h>
 #include <stdint.h>
 
+#include "rte_byteorder.h"
+
 /* Verbs headers do not support -pedantic. */
 #ifdef PEDANTIC
 #pragma GCC diagnostic ignored "-Wpedantic"
@@ -156,6 +158,10 @@ struct mlx5_glue {
        void *(*dr_create_flow_action_dest_flow_tbl)(void *tbl);
        void *(*dr_create_flow_action_dest_vport)(void *domain, uint32_t vport);
        void *(*dr_create_flow_action_drop)();
+       void *(*dr_create_flow_action_push_vlan)
+                                       (struct mlx5dv_dr_domain *domain,
+                                        rte_be32_t vlan_tag);
+       void *(*dr_create_flow_action_pop_vlan)();
        void *(*dr_create_flow_tbl)(void *domain, uint32_t level);
        int (*dr_destroy_flow_tbl)(void *tbl);
        void *(*dr_create_domain)(struct ibv_context *ctx,