]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Add match on vport metadata for rule in fast path
authorJianbo Liu <jianbol@mellanox.com>
Tue, 25 Jun 2019 17:48:04 +0000 (17:48 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Jun 2019 19:01:28 +0000 (12:01 -0700)
commitfb64b128276bd9fa226cfdf05348571cfc9ebc0c
tree786009df9b8b12b8d7f2e709d62eb0c2143ea061
parent470f1e072d267034b57e43ea4a94a1e8b48fb903
net/mlx5: E-Switch, Add match on vport metadata for rule in fast path

If FW's capabilities and configurations meet the requirement of vport
metadata matching, this feature will be used. As the information
about vport number and vhca_id related to packet is already stored to
its metadata register, which is used as an indicator for perticular
vport, now we can change to match on this metadata for all the
offloading rules in fast path.

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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c