OSDN Git Service

net/mlx5: Support extended destination format in flow steering command
authorEli Britstein <elibr@mellanox.com>
Mon, 10 Dec 2018 21:15:16 +0000 (13:15 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 10 Dec 2018 22:00:08 +0000 (14:00 -0800)
commita2c6162b12f15fbbbe38d0eb3a38186bcfc79c0f
treef0bf072aa8d1bbc3803133ae0c0f0c20e5a4f8fa
parentaa39c2c0e44d16b5804f8fb6b5350cdf4e33b4c3
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>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
include/linux/mlx5/fs.h