summaryrefslogtreecommitdiffstats
path: root/include
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
parentaa39c2c0e44d16b5804f8fb6b5350cdf4e33b4c3 (diff)
downloadlinux-a2c6162b12f15fbbbe38d0eb3a38186bcfc79c0f.tar.bz2
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')
-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;
};