OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a704a
)
mlxsw: switchx2: Use ETH_ALEN for mac address length
author
Jiri Pirko
<jiri@mellanox.com>
Thu, 15 Oct 2015 15:43:16 +0000
(17:43 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 16 Oct 2015 06:27:45 +0000
(23:27 -0700)
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
index
835b632
..
f057d43
100644
(file)
--- 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_A
LEN];
};
struct mlxsw_sx_port_pcpu_stats {