X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftunnel.h;h=29f592250f99c812c435f226482c24b1ff201e44;hb=31ac1e590b9bb2a2ce7c70cd7c8fd2db0fb8e481;hp=5615f6ada9d2280475ef35ebd9db6cdf3b7e2ed0;hpb=b9298d3f825703063c9538aa37407da43e1e4781;p=openvswitch diff --git a/datapath/tunnel.h b/datapath/tunnel.h index 5615f6ad..29f59225 100644 --- a/datapath/tunnel.h +++ b/datapath/tunnel.h @@ -161,7 +161,7 @@ struct tnl_vport { char name[IFNAMSIZ]; const struct tnl_ops *tnl_ops; - struct tnl_mutable_config *mutable; /* Protected by RCU. */ + struct tnl_mutable_config __rcu *mutable; /* * ID of last fragment sent (for tunnel protocols with direct support @@ -171,7 +171,7 @@ struct tnl_vport { atomic_t frag_id; spinlock_t cache_lock; - struct tnl_cache *cache; /* Protected by RCU/cache_lock. */ + struct tnl_cache __rcu *cache; /* Protected by RCU/cache_lock. */ #ifdef NEED_CACHE_TIMEOUT /* @@ -192,6 +192,7 @@ int tnl_set_mtu(struct vport *vport, int mtu); int tnl_set_addr(struct vport *vport, const unsigned char *addr); const char *tnl_get_name(const struct vport *vport); const unsigned char *tnl_get_addr(const struct vport *vport); +void tnl_get_config(const struct vport *vport, void *config); int tnl_get_mtu(const struct vport *vport); int tnl_send(struct vport *vport, struct sk_buff *skb); void tnl_rcv(struct vport *vport, struct sk_buff *skb);