net/mlx5: E-Switch, Enable vport metadata matching if firmware supports it
authorJianbo Liu <jianbol@mellanox.com>
Tue, 25 Jun 2019 17:48:14 +0000 (17:48 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Jun 2019 19:01:29 +0000 (12:01 -0700)
commit92ab1eb392c6ac6f7fdeee4bfdfb39aa860a371f
tree742d5223b38022701f7b4fcbbb6ce7391a6649b0
parent669ff1e32f334e6a09e523db94989b96da4a4710
net/mlx5: E-Switch, Enable vport metadata matching if firmware supports it

As the ingress ACL rules save vhca id and vport number to packet's
metadata REG_C_0, and the metadata matching for the rules in both fast
path and slow path are all added, enable this feature if supported.

Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c