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)
commitfc74ecbc293cba27fd8adee7a18fbda2f8d9e285
tree7a42ca12d61b7271645f6fe2389f7787efddd27c
parent575b65bc5bff37ec502d5eab9fc91d0a8d5ec40e
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