]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: E-Switch, Specify flow_source for rule with no in_port
authorJianbo Liu <jianbol@mellanox.com>
Fri, 3 Jul 2020 02:34:23 +0000 (02:34 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 31 Jul 2020 01:53:53 +0000 (18:53 -0700)
commite5b9424d95af4d5cea944dd95368931d88a9157c
treec7ca5617fb33dba2eca388186b44f3abd642d6fc
parente617e123d24c768d799f5fdfdf0ae6b03cbd8926
net/mlx5e: E-Switch, Specify flow_source for rule with no in_port

The flow_source must be specified, even for rule without matching
source vport, because some actions are only allowed in uplink.
Otherwise, rule can't be offloaded and firmware syndrome happens.

Fixes: 4b40e2e93d59 ("net/mlx5: E-Switch, Add support for offloading rules with no in_port")
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Chris Mi <chrism@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c