net/mlx5e: Check action fwd/drop flag exists also for nic flows
authorRoi Dayan <roid@nvidia.com>
Thu, 12 Aug 2021 06:38:32 +0000 (09:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 24 Sep 2021 18:46:53 +0000 (11:46 -0700)
commit6b50cf45b6a0e99f3cab848a72ecca8da56b7460
tree3935d538c7e0c179c125fc0ab6a6da8e7cb59664
parent7f8770c71646cf93abdf3fea8b7733aaec4c82a3
net/mlx5e: Check action fwd/drop flag exists also for nic flows

The driver should add offloaded rules with either a fwd or drop action.
The check existed in parsing fdb flows but not when parsing nic flows.
Move the test into actions_match_supported() which is called for
checking nic flows and fdb flows.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c