summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorAmir Vadai2012-07-19 00:33:49 +0200
committerDavid S. Miller2012-07-19 17:34:37 +0200
commitaf22d9de45caf8b2a99f2b27a927169c029528b4 (patch)
tree62299712c84e193a737d5d9e5ce474a01485a9a8 /include/linux/mlx4
parentipv4: fix address selection in fib_compute_spec_dst (diff)
downloadkernel-qcow2-linux-af22d9de45caf8b2a99f2b27a927169c029528b4.tar.gz
kernel-qcow2-linux-af22d9de45caf8b2a99f2b27a927169c029528b4.tar.xz
kernel-qcow2-linux-af22d9de45caf8b2a99f2b27a927169c029528b4.zip
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 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h
index 5f1298b1b5ef..8dc485febc6b 100644
--- a/include/linux/mlx4/driver.h
+++ b/include/linux/mlx4/driver.h
@@ -37,6 +37,8 @@
struct mlx4_dev;
+#define MLX4_MAC_MASK 0xffffffffffffULL
+
enum mlx4_dev_event {
MLX4_DEV_EVENT_CATASTROPHIC_ERROR,
MLX4_DEV_EVENT_PORT_UP,