Lines Matching refs:dp
158 static inline struct net *ovs_dp_get_net(const struct datapath *dp) in ovs_dp_get_net() argument
160 return read_pnet(&dp->net); in ovs_dp_get_net()
163 static inline void ovs_dp_set_net(struct datapath *dp, struct net *net) in ovs_dp_set_net() argument
165 write_pnet(&dp->net, net); in ovs_dp_set_net()
168 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no);
170 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu() argument
173 return ovs_lookup_vport(dp, port_no); in ovs_vport_rcu()
176 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu() argument
179 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl_rcu()
182 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl() argument
185 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl()
197 return vport->dp; in get_dp_rcu()
208 struct datapath *dp; in get_dp() local
212 dp = get_dp_rcu(net, dp_ifindex); in get_dp()
215 return dp; in get_dp()
229 const char *ovs_dp_name(const struct datapath *dp);
233 int ovs_execute_actions(struct datapath *dp, struct sk_buff *skb,