Lines Matching refs:vport
33 struct vport;
41 struct vport *ovs_vport_add(const struct vport_parms *);
42 void ovs_vport_del(struct vport *);
44 struct vport *ovs_vport_locate(const struct net *net, const char *name);
46 void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *);
48 int ovs_vport_set_options(struct vport *, struct nlattr *options);
49 int ovs_vport_get_options(const struct vport *, struct sk_buff *);
51 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids);
52 int ovs_vport_get_upcall_portids(const struct vport *, struct sk_buff *);
53 u32 ovs_vport_find_upcall_portid(const struct vport *, struct sk_buff *);
82 struct vport { struct
137 struct vport *(*create)(const struct vport_parms *);
138 void (*destroy)(struct vport *);
140 int (*set_options)(struct vport *, struct nlattr *);
141 int (*get_options)(const struct vport *, struct sk_buff *);
148 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
150 void ovs_vport_free(struct vport *);
151 void ovs_vport_deferred_free(struct vport *vport);
164 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument
166 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
179 static inline struct vport *vport_from_priv(void *priv) in vport_from_priv()
181 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
184 int ovs_vport_receive(struct vport *, struct sk_buff *,
187 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument
189 return vport->dev->name; in ovs_vport_name()
220 void ovs_vport_send(struct vport *vport, struct sk_buff *skb);