mlxsw: reg: Extend mlxsw_reg_mpat_pack()
authorPetr Machata <petrm@mellanox.com>
Tue, 27 Feb 2018 13:53:40 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:46:26 +0000 (14:46 -0500)
commit1da93eb466dc6f8a92e0316fd983ee8a3338db4c
treea6b2229e9867b25e56f94835860f276a6dd8fc13
parent0d6cd3fcbc0222234c7f91c7f3e57d34fc009714
mlxsw: reg: Extend mlxsw_reg_mpat_pack()

To support encapsulated SPAN, extend mlxsw_reg_mpat_pack() with a field
to set the SPAN type.

Signed-off-by: Petr Machata <petrm@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/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c