diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-10-15 17:43:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-16 08:27:45 +0200 |
commit | ffe053285b77e9cd87c3b8e37f35bdb8de8172d1 (patch) | |
tree | 7650760bf5d44bc6d598ffde15be68be14f2a172 /drivers | |
parent | mlxsw: Remove multicast ID configuration (diff) | |
download | linux-ffe053285b77e9cd87c3b8e37f35bdb8de8172d1.tar.xz linux-ffe053285b77e9cd87c3b8e37f35bdb8de8172d1.zip |
mlxsw: switchx2: Use ETH_ALEN for mac address length
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c index 835b632fb1a6..f057d43826f1 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c +++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c @@ -57,13 +57,11 @@ static const char mlxsw_sx_driver_version[] = "1.0"; struct mlxsw_sx_port; -#define MLXSW_SW_HW_ID_LEN 6 - struct mlxsw_sx { struct mlxsw_sx_port **ports; struct mlxsw_core *core; const struct mlxsw_bus_info *bus_info; - u8 hw_id[MLXSW_SW_HW_ID_LEN]; + u8 hw_id[ETH_ALEN]; }; struct mlxsw_sx_port_pcpu_stats { |