net/mlx5: Add direct rule fs_cmd implementation
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 20 Aug 2019 07:06:48 +0000 (10:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 3 Sep 2019 19:54:23 +0000 (12:54 -0700)
commit6a48faeeca10a57d13deb29069591fc20a6e8117
tree2c9be79d206faf6181bfe5ade9c5360aee0bfee9
parentfb86f1210a5776a4c0985b829542e3c30c4b89b7
net/mlx5: Add direct rule fs_cmd implementation

Add support to create flow steering objects
via direct rule API (SW steering).
New layer is added - fs_dr, this layer translates the command that
fs_core sends to the FW into direct rule API. In case that direct
rule is not supported in some feature then -EOPNOTSUPP is
returned.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.h [new file with mode: 0644]