diff options
Diffstat (limited to 'drivers/net/ipvlan/ipvlan.h')
-rw-r--r-- | drivers/net/ipvlan/ipvlan.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/ipvlan/ipvlan.h b/drivers/net/ipvlan/ipvlan.h index 817cab1a7959..695a5dc9ace3 100644 --- a/drivers/net/ipvlan/ipvlan.h +++ b/drivers/net/ipvlan/ipvlan.h | |||
@@ -84,19 +84,19 @@ struct ipvl_addr { | |||
84 | #define ip4addr ipu.ip4 | 84 | #define ip4addr ipu.ip4 |
85 | struct hlist_node hlnode; /* Hash-table linkage */ | 85 | struct hlist_node hlnode; /* Hash-table linkage */ |
86 | struct list_head anode; /* logical-interface linkage */ | 86 | struct list_head anode; /* logical-interface linkage */ |
87 | struct rcu_head rcu; | ||
88 | ipvl_hdr_type atype; | 87 | ipvl_hdr_type atype; |
88 | struct rcu_head rcu; | ||
89 | }; | 89 | }; |
90 | 90 | ||
91 | struct ipvl_port { | 91 | struct ipvl_port { |
92 | struct net_device *dev; | 92 | struct net_device *dev; |
93 | struct hlist_head hlhead[IPVLAN_HASH_SIZE]; | 93 | struct hlist_head hlhead[IPVLAN_HASH_SIZE]; |
94 | struct list_head ipvlans; | 94 | struct list_head ipvlans; |
95 | struct rcu_head rcu; | 95 | u16 mode; |
96 | struct work_struct wq; | 96 | struct work_struct wq; |
97 | struct sk_buff_head backlog; | 97 | struct sk_buff_head backlog; |
98 | int count; | 98 | int count; |
99 | u16 mode; | 99 | struct rcu_head rcu; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static inline struct ipvl_port *ipvlan_port_get_rcu(const struct net_device *d) | 102 | static inline struct ipvl_port *ipvlan_port_get_rcu(const struct net_device *d) |
@@ -114,7 +114,6 @@ static inline struct ipvl_port *ipvlan_port_get_rtnl(const struct net_device *d) | |||
114 | return rtnl_dereference(d->rx_handler_data); | 114 | return rtnl_dereference(d->rx_handler_data); |
115 | } | 115 | } |
116 | 116 | ||
117 | void ipvlan_adjust_mtu(struct ipvl_dev *ipvlan, struct net_device *dev); | ||
118 | void ipvlan_init_secret(void); | 117 | void ipvlan_init_secret(void); |
119 | unsigned int ipvlan_mac_hash(const unsigned char *addr); | 118 | unsigned int ipvlan_mac_hash(const unsigned char *addr); |
120 | rx_handler_result_t ipvlan_handle_frame(struct sk_buff **pskb); | 119 | rx_handler_result_t ipvlan_handle_frame(struct sk_buff **pskb); |
@@ -124,7 +123,5 @@ void ipvlan_ht_addr_add(struct ipvl_dev *ipvlan, struct ipvl_addr *addr); | |||
124 | struct ipvl_addr *ipvlan_find_addr(const struct ipvl_dev *ipvlan, | 123 | struct ipvl_addr *ipvlan_find_addr(const struct ipvl_dev *ipvlan, |
125 | const void *iaddr, bool is_v6); | 124 | const void *iaddr, bool is_v6); |
126 | bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6); | 125 | bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6); |
127 | struct ipvl_addr *ipvlan_ht_addr_lookup(const struct ipvl_port *port, | ||
128 | const void *iaddr, bool is_v6); | ||
129 | void ipvlan_ht_addr_del(struct ipvl_addr *addr); | 126 | void ipvlan_ht_addr_del(struct ipvl_addr *addr); |
130 | #endif /* __IPVLAN_H */ | 127 | #endif /* __IPVLAN_H */ |