]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5312058b1f0680961abc5655ec1444a764e69b3c
tree760a01219b30ae98c7c97375649c8c507e7dc3f2
parent249c8270c39a5dd6d3749de1d0c66017ccc4436b
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