net/mlx5e: Support offloaded TC flows with no matches on headers
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 5 Apr 2018 12:50:36 +0000 (15:50 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 May 2018 22:10:21 +0000 (15:10 -0700)
commit38aa51c134b56b7ea61bea79b428c5fbcd95f285
treedb7b53f77b439d880d318fd4f1770bd44425f3ad
parentd708f902989b844907c5f7720abe67812a256c33
net/mlx5e: Support offloaded TC flows with no matches on headers

For example:
    tc filter add dev ens2f0_0 parent ffff: flower skip_sw action drop

Note that for eswitch flows, we still always match on the source port.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c