diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-07-19 02:33:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 19:34:37 +0400 |
commit | af22d9de45caf8b2a99f2b27a927169c029528b4 (patch) | |
tree | 62299712c84e193a737d5d9e5ce474a01485a9a8 /drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | |
parent | 0cc535a29916c6a0e6e6af0f3d42c2fe3b0b145d (diff) | |
download | linux-af22d9de45caf8b2a99f2b27a927169c029528b4.tar.xz |
net/mlx4: Move MAC_MASK to a common place
Define this macro is one common place instead of duplicating it over the code
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/resource_tracker.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c index c3fa91986190..94ceddd17ab2 100644 --- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c +++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c @@ -41,13 +41,12 @@ #include <linux/slab.h> #include <linux/mlx4/cmd.h> #include <linux/mlx4/qp.h> +#include <linux/if_ether.h> #include "mlx4.h" #include "fw.h" #define MLX4_MAC_VALID (1ull << 63) -#define MLX4_MAC_MASK 0x7fffffffffffffffULL -#define ETH_ALEN 6 struct mac_res { struct list_head list; |