diff options
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r-- | net/openvswitch/datapath.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 4067ea41be28..6be9fbb5e9cb 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h | |||
@@ -88,6 +88,8 @@ struct datapath { | |||
88 | /* Network namespace ref. */ | 88 | /* Network namespace ref. */ |
89 | struct net *net; | 89 | struct net *net; |
90 | #endif | 90 | #endif |
91 | |||
92 | u32 user_features; | ||
91 | }; | 93 | }; |
92 | 94 | ||
93 | /** | 95 | /** |
@@ -145,6 +147,8 @@ int lockdep_ovsl_is_held(void); | |||
145 | #define ASSERT_OVSL() WARN_ON(unlikely(!lockdep_ovsl_is_held())) | 147 | #define ASSERT_OVSL() WARN_ON(unlikely(!lockdep_ovsl_is_held())) |
146 | #define ovsl_dereference(p) \ | 148 | #define ovsl_dereference(p) \ |
147 | rcu_dereference_protected(p, lockdep_ovsl_is_held()) | 149 | rcu_dereference_protected(p, lockdep_ovsl_is_held()) |
150 | #define rcu_dereference_ovsl(p) \ | ||
151 | rcu_dereference_check(p, lockdep_ovsl_is_held()) | ||
148 | 152 | ||
149 | static inline struct net *ovs_dp_get_net(struct datapath *dp) | 153 | static inline struct net *ovs_dp_get_net(struct datapath *dp) |
150 | { | 154 | { |
@@ -178,14 +182,12 @@ static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_n | |||
178 | 182 | ||
179 | extern struct notifier_block ovs_dp_device_notifier; | 183 | extern struct notifier_block ovs_dp_device_notifier; |
180 | extern struct genl_family dp_vport_genl_family; | 184 | extern struct genl_family dp_vport_genl_family; |
181 | extern struct genl_multicast_group ovs_dp_vport_multicast_group; | ||
182 | 185 | ||
183 | void ovs_dp_process_received_packet(struct vport *, struct sk_buff *); | 186 | void ovs_dp_process_received_packet(struct vport *, struct sk_buff *); |
184 | void ovs_dp_detach_port(struct vport *); | 187 | void ovs_dp_detach_port(struct vport *); |
185 | int ovs_dp_upcall(struct datapath *, struct sk_buff *, | 188 | int ovs_dp_upcall(struct datapath *, struct sk_buff *, |
186 | const struct dp_upcall_info *); | 189 | const struct dp_upcall_info *); |
187 | 190 | ||
188 | const char *ovs_dp_name(const struct datapath *dp); | ||
189 | struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq, | 191 | struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq, |
190 | u8 cmd); | 192 | u8 cmd); |
191 | 193 | ||