]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Extract mlxsw_sp_span_entry_{de, }configure()
authorPetr Machata <petrm@mellanox.com>
Tue, 27 Feb 2018 13:53:43 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:46:27 +0000 (14:46 -0500)
commitca54c2d24ed417da7b988d3e7fc2f511927d2af9
treec333776569223a4fa2bcd53adf2eca1c0bc872dd
parentb5b5f2b57412b5362ad7acc2317743e658927006
mlxsw: spectrum_span: Extract mlxsw_sp_span_entry_{de, }configure()

Configuring the hardware for encapsulated SPAN involves more code than
the simple mirroring case. Extract the related code to a separate
function to separate it from the rest of SPAN entry creation. Extract
deconfigure as well for symmetry, even though disablement is the same
regardless of 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/spectrum_span.c