From: Jiri Pirko Subject: [patch net-next 0/3] mlxsw: SPAN cleanups Date: Tue, 13 Feb 2018 11:27:45 +0100 Message-ID: <20180213102748.7957-1-jiri@resnulli.us> Cc: davem@davemloft.net, idosch@mellanox.com, petrm@mellanox.com, mlxsw@mellanox.com To: netdev@vger.kernel.org Return-path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:36167 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754034AbeBMK1u (ORCPT ); Tue, 13 Feb 2018 05:27:50 -0500 Received: by mail-wr0-f193.google.com with SMTP id y3so18091145wrh.3 for ; Tue, 13 Feb 2018 02:27:50 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko In patch one of this short series, a misplaced pointer star is moved to the correct place. In the second patch, we observe that if SPAN entries carry their reference count anyway, it's redundant to also carry a "used" flag. In the third patch, SPAN support code is moved to a separate module. Petr Machata (3): mlxsw: spectrum: Fix a coding style nit mlxsw: spectrum: Drop struct span_entry.used mlxsw: spectrum: Move SPAN code to separate module drivers/net/ethernet/mellanox/mlxsw/Makefile | 2 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 322 +------------------ drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 30 +- .../mellanox/mlxsw/spectrum_acl_flex_actions.c | 1 + .../net/ethernet/mellanox/mlxsw/spectrum_span.c | 356 +++++++++++++++++++++ .../net/ethernet/mellanox/mlxsw/spectrum_span.h | 73 +++++ 6 files changed, 433 insertions(+), 351 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h -- 2.14.3