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>
This commit is contained in:
parent
33a704a59b
commit
ffe053285b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue