]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Rename misnamed variable l3edev
authorPetr Machata <petrm@mellanox.com>
Fri, 11 May 2018 08:57:30 +0000 (11:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 20:01:24 +0000 (16:01 -0400)
commit3d32081e6fad58f4a2a65b766b52f9275915fdd0
tree7a42ca12d61b7271645f6fe2389f7787efddd27c
parent8804807ca6f37031ee7039611824118b04cde462
mlxsw: spectrum_span: Rename misnamed variable l3edev

Calling the variable l3edev was relevant when neighbor lookup was the
last stage in the simulated pipeline. Now that mlxsw handles bridges and
vlan devices as well, calling it "L3" is a misnomer.

Thus in mlxsw_sp_span_dmac(), rename to "dev", because that function is
just a service routine where the distinction between tunnel and egress
device isn't necessary.

In mlxsw_sp_span_entry_tunnel_parms_common(), rename to "edev" to
emphasize that the routine traces packet egress.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c