Discussion:
[PATCH v2] vxlan: remove the dead codes
r***@gmail.com
2014-10-17 06:04:04 UTC
Permalink
From: Li RongQing <***@gmail.com>

remove the dead codes, no user uses vxlan_salt

Signed-off-by: Li RongQing <***@gmail.com>
---
drivers/net/vxlan.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 77ab844..855a81d 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -152,8 +152,6 @@ struct vxlan_dev {
struct hlist_head fdb_head[FDB_HASH_SIZE];
};

-/* salt for hash table */
-static u32 vxlan_salt __read_mostly;
static struct workqueue_struct *vxlan_wq;

static void vxlan_sock_work(struct work_struct *work);
@@ -2797,8 +2795,6 @@ static int __init vxlan_init_module(void)
if (!vxlan_wq)
return -ENOMEM;

- get_random_bytes(&vxlan_salt, sizeof(vxlan_salt));
-
rc = register_pernet_subsys(&vxlan_net_ops);
if (rc)
goto out1;
--
1.7.10.4
Cong Wang
2014-10-17 17:33:08 UTC
Permalink
Post by r***@gmail.com
remove the dead codes, no user uses vxlan_salt
---
drivers/net/vxlan.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 77ab844..855a81d 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -152,8 +152,6 @@ struct vxlan_dev {
struct hlist_head fdb_head[FDB_HASH_SIZE];
};
-/* salt for hash table */
-static u32 vxlan_salt __read_mostly;
Hmm, it has never been used since it was born. Maybe we should
really use for vxlan hash table?
David Miller
2014-10-17 20:24:49 UTC
Permalink
From: Cong Wang <***@twopensource.com>
Date: Fri, 17 Oct 2014 10:33:08 -0700
Post by Cong Wang
Post by r***@gmail.com
remove the dead codes, no user uses vxlan_salt
---
drivers/net/vxlan.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 77ab844..855a81d 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -152,8 +152,6 @@ struct vxlan_dev {
struct hlist_head fdb_head[FDB_HASH_SIZE];
};
-/* salt for hash table */
-static u32 vxlan_salt __read_mostly;
Hmm, it has never been used since it was born. Maybe we should
really use for vxlan hash table?
Yes, agreed, and I am very sure that this was Stephen Hemminger's
original intention.
Stephen Hemminger
2014-10-18 09:20:44 UTC
Permalink
On Fri, 17 Oct 2014 16:24:49 -0400 (EDT)
Post by David Miller
Date: Fri, 17 Oct 2014 10:33:08 -0700
Post by Cong Wang
Post by r***@gmail.com
remove the dead codes, no user uses vxlan_salt
---
drivers/net/vxlan.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 77ab844..855a81d 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -152,8 +152,6 @@ struct vxlan_dev {
struct hlist_head fdb_head[FDB_HASH_SIZE];
};
-/* salt for hash table */
-static u32 vxlan_salt __read_mostly;
Hmm, it has never been used since it was born. Maybe we should
really use for vxlan hash table?
Yes, agreed, and I am very sure that this was Stephen Hemminger's
original intention.
yes. never did rekeying, and it would have been hard.

Loading...