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_set_options(struct vport *, struct nlattr *options);
36 int ovs_vport_get_options(const struct vport *, struct sk_buff *);
38 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
39 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
40 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
71 struct vport { struct
129 struct vport *(*create)(const struct vport_parms *);
130 void (*destroy)(struct vport *);
132 int (*set_options)(struct vport *, struct nlattr *);
133 int (*get_options)(const struct vport *, struct sk_buff *);
140 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
142 void ovs_vport_free(struct vport *);
155 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument
157 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
170 static inline struct vport *vport_from_priv(void *priv) in vport_from_priv()
172 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
175 int ovs_vport_receive(struct vport *, struct sk_buff *,
178 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument
180 return vport->dev->name; in ovs_vport_name()
191 void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto);