net/mlx5: Create bypass and loopback flow steering namespaces for RDMA RX
authorMark Zhang <markz@mellanox.com>
Mon, 19 Aug 2019 11:36:25 +0000 (14:36 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 21 Aug 2019 13:57:17 +0000 (16:57 +0300)
commite6806e9a63a759e445383915bb9d2ec85a90aebf
treefb6d508a570a8fed911b377380d5171bca13edf8
parentf66ad830b11406cdff84e7d8656a0a9e34b0b606
net/mlx5: Create bypass and loopback flow steering namespaces for RDMA RX

Use different namespaces for bypass and switchdev loopback because they
have different priorities and default table miss action requirement:
1. bypass: with multiple priorities support, and
   MLX5_FLOW_TABLE_MISS_ACTION_DEF as the default table miss action;
2. switchdev loopback: with single priority support, and
   MLX5_FLOW_TABLE_MISS_ACTION_SWITCH_DOMAIN as the default table miss
   action.

Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/rdma.c
include/linux/mlx5/fs.h