geneve: Remove socket hash table.

The hash table for open Geneve ports is used only on creation and
deletion time. It is not performance critical and is not likely to
grow to a large number of items. Therefore, this can be changed
to use a simple linked list.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jesse Gross
2015-01-02 18:26:04 -08:00
committed by David S. Miller
parent 829a3ada9c
commit df5dba8e52
2 changed files with 8 additions and 20 deletions

View File

@@ -68,7 +68,7 @@ struct geneve_sock;
typedef void (geneve_rcv_t)(struct geneve_sock *gs, struct sk_buff *skb);
struct geneve_sock {
struct hlist_node hlist;
struct list_head list;
geneve_rcv_t *rcv;
void *rcv_data;
struct socket *sock;