net/mlx5e: Parse mirroring action for offloaded TC eswitch flows
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / eswitch.h
index d06c1162912175bfda9670ea2f156249c0d44e4b..386b0e354c413ce6097541cea08997f8021eb683 100644 (file)
@@ -239,12 +239,18 @@ enum mlx5_flow_match_level {
        MLX5_MATCH_L4   = MLX5_INLINE_MODE_TCP_UDP,
 };
 
+/* current maximum for flow based vport multicasting */
+#define MLX5_MAX_FLOW_FWD_VPORTS 2
+
 struct mlx5_esw_flow_attr {
        struct mlx5_eswitch_rep *in_rep;
-       struct mlx5_eswitch_rep *out_rep;
-       struct mlx5_core_dev    *out_mdev;
+       struct mlx5_eswitch_rep *out_rep[MLX5_MAX_FLOW_FWD_VPORTS];
+       struct mlx5_core_dev    *out_mdev[MLX5_MAX_FLOW_FWD_VPORTS];
        struct mlx5_core_dev    *in_mdev;
 
+       int mirror_count;
+       int out_count;
+
        int     action;
        __be16  vlan_proto;
        u16     vlan_vid;