mlxsw: spectrum: Make the add_matchall_tc_entry symmetric
authorYotam Gigi <yotamg@mellanox.com>
Mon, 9 Jan 2017 10:25:46 +0000 (11:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 19:35:14 +0000 (14:35 -0500)
commit65acb5d0827c8a05022e77eced63cdc8616ba43a
tree760a01219b30ae98c7c97375649c8c507e7dc3f2
parent169852718f217659811858562aaaa1de3abbcf58
mlxsw: spectrum: Make the add_matchall_tc_entry symmetric

Currently, the mlxsw spectrum driver only supports offloading the matchall
classifier together with the mirred action. To allow more matchall tc
offloads, make the code symmetric so that it can be easily extended later
on for other actions.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c