netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] vxlan: remove the dead codes
@ 2014-10-17  6:04 roy.qing.li
  2014-10-17 17:33 ` Cong Wang
  0 siblings, 1 reply; 4+ messages in thread
From: roy.qing.li @ 2014-10-17  6:04 UTC (permalink / raw)
  To: netdev

From: Li RongQing <roy.qing.li@gmail.com>

remove the dead codes, no user uses vxlan_salt

Signed-off-by: Li RongQing <roy.qing.li@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-18  9:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17  6:04 [PATCH v2] vxlan: remove the dead codes roy.qing.li
2014-10-17 17:33 ` Cong Wang
2014-10-17 20:24   ` David Miller
2014-10-18  9:20     ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).