aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/fs.h
diff options
context:
space:
mode:
authorEli Britstein <elibr@mellanox.com>2018-12-10 13:15:16 -0800
committerSaeed Mahameed <saeedm@mellanox.com>2018-12-10 14:00:08 -0800
commita2c6162b12f15fbbbe38d0eb3a38186bcfc79c0f (patch)
treef0bf072aa8d1bbc3803133ae0c0f0c20e5a4f8fa /include/linux/mlx5/fs.h
parentnet/mlx5: E-Switch, Change vhca id valid bool field to bit flag (diff)
downloadlinux-dev-a2c6162b12f15fbbbe38d0eb3a38186bcfc79c0f.tar.xz
linux-dev-a2c6162b12f15fbbbe38d0eb3a38186bcfc79c0f.zip
net/mlx5: Support extended destination format in flow steering command
Update the flow steering command formatting according to the extended destination API. Note that the FW dictates that multi destination FTEs that involve at least one encap must use the extended destination format, while single destination ones must use the legacy format. Using extended destination format requires FW support. Check for its capabilities and return error if not supported. Signed-off-by: Eli Britstein <elibr@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Oz Shlomo <ozsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/fs.h')
-rw-r--r--include/linux/mlx5/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 25ffd8018b72..9df51da04621 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -88,6 +88,7 @@ struct mlx5_flow_spec {
enum {
MLX5_FLOW_DEST_VPORT_VHCA_ID = BIT(0),
+ MLX5_FLOW_DEST_VPORT_REFORMAT_ID = BIT(1),
};
struct mlx5_flow_destination {
@@ -100,6 +101,7 @@ struct mlx5_flow_destination {
struct {
u16 num;
u16 vhca_id;
+ u32 reformat_id;
u8 flags;
} vport;
};