mlxsw: switchx2: Use ETH_ALEN for mac address length
[deliverable/linux.git] / drivers / net / ethernet / mellanox / mlxsw / switchx2.c
index 835b632fb1a6657fc88f9fdd3b06281cf29e8403..f057d43826f1f00b18aaa0553caede67830247de 100644 (file)
@@ -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 {
This page took 0.025317 seconds and 5 git commands to generate.