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 *);
70 struct vport { struct
125 struct vport *(*create)(const struct vport_parms *);
126 void (*destroy)(struct vport *);
128 int (*set_options)(struct vport *, struct nlattr *);
129 int (*get_options)(const struct vport *, struct sk_buff *);
136 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *,
138 void ovs_vport_free(struct vport *);
151 static inline void *vport_priv(const struct vport *vport) in vport_priv() argument
153 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
166 static inline struct vport *vport_from_priv(void *priv) in vport_from_priv()
168 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
171 int ovs_vport_receive(struct vport *, struct sk_buff *,
174 static inline const char *ovs_vport_name(struct vport *vport) in ovs_vport_name() argument
176 return vport->dev->name; in ovs_vport_name()
187 void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto);