diff options
author | Jianbo Liu | 2019-06-25 19:47:54 +0200 |
---|---|---|
committer | Saeed Mahameed | 2019-06-26 21:01:28 +0200 |
commit | 84b0d6a7a11ec976da347d50de9d5a556743de16 (patch) | |
tree | 74a4c0a71f5db6f9abca224b2317c557c57d4348 /drivers/net/ethernet | |
parent | net/mlx5: Get vport ACL namespace by vport index (diff) | |
download | kernel-qcow2-linux-84b0d6a7a11ec976da347d50de9d5a556743de16.tar.gz kernel-qcow2-linux-84b0d6a7a11ec976da347d50de9d5a556743de16.tar.xz kernel-qcow2-linux-84b0d6a7a11ec976da347d50de9d5a556743de16.zip |
net/mlx5: Support allocating modify header context from ingress ACL
That modify header action can be then attached to a steering rule in
the ingress ACL.
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c index bb24c3797218..4f1d402926f1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c @@ -771,6 +771,10 @@ int mlx5_modify_header_alloc(struct mlx5_core_dev *dev, max_actions = MLX5_CAP_FLOWTABLE_NIC_TX(dev, max_modify_header_actions); table_type = FS_FT_NIC_TX; break; + case MLX5_FLOW_NAMESPACE_ESW_INGRESS: + max_actions = MLX5_CAP_ESW_INGRESS_ACL(dev, max_modify_header_actions); + table_type = FS_FT_ESW_INGRESS_ACL; + break; default: return -EOPNOTSUPP; } |