net/mlx5: Eswitch, enable RoCE loopback traffic
When in switchdev mode, we would like to treat loopback RoCE traffic (on eswitch manager) as RDMA and not as regular Ethernet traffic In order to enable it we add flow steering rule that forward RoCE loopback traffic to the HW RoCE filter (by adding allow rule). In addition we add RoCE address in GID index 0, which will be set in the RoCE loopback packet. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:

committed by
Saeed Mahameed

parent
f6f7d6b5bd
commit
80f09dfc23
@@ -512,6 +512,12 @@ struct mlx5_rl_table {
|
||||
struct mlx5_rl_entry *rl_entry;
|
||||
};
|
||||
|
||||
struct mlx5_core_roce {
|
||||
struct mlx5_flow_table *ft;
|
||||
struct mlx5_flow_group *fg;
|
||||
struct mlx5_flow_handle *allow_rule;
|
||||
};
|
||||
|
||||
struct mlx5_priv {
|
||||
struct mlx5_eq_table *eq_table;
|
||||
|
||||
@@ -565,6 +571,7 @@ struct mlx5_priv {
|
||||
struct mlx5_lag *lag;
|
||||
struct mlx5_devcom *devcom;
|
||||
unsigned long pci_dev_data;
|
||||
struct mlx5_core_roce roce;
|
||||
struct mlx5_fc_stats fc_stats;
|
||||
struct mlx5_rl_table rl_table;
|
||||
|
||||
|
Reference in New Issue
Block a user