Lines Matching refs:vport
20 struct vport;
28 struct vport *ovs_vport_add(const struct vport_parms *);
29 void ovs_vport_del(struct vport *);
31 struct vport *ovs_vport_locate(const struct net *net, const char *name);
33 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *);
35 int ovs_vport_get_upcall_stats(struct vport *vport, struct sk_buff *skb);
37 int ovs_vport_set_options(struct vport *, struct nlattr *options);
38 int ovs_vport_get_options(const struct vport *, struct sk_buff *);
40 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
41 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
42 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
74 struct vport { struct
133 struct vport *(*create)(const struct vport_parms *);
134 void (*destroy)(struct vport *);
136 int (*set_options)(struct vport *, struct nlattr *);
137 int (*get_options)(const struct vport *, struct sk_buff *);
156 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
158 void ovs_vport_free(struct vport *);
171 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument
173 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
186 static inline struct vport *vport_from_priv(void *priv) in vport_from_priv()
188 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
191 int ovs_vport_receive(struct vport *, struct sk_buff *,
194 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument
196 return vport->dev->name; in ovs_vport_name()
207 void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto);