···157157 * @get_options: Appends vport-specific attributes for the configuration of an158158 * existing vport to a &struct sk_buff. May be %NULL for a vport that does not159159 * have any configuration.160160- * @get_name: Get the device's name.161160 * @send: Send a packet on the device. Returns the length of the packet sent,162161 * zero for dropped packets or negative for error.163162 * @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for···171172172173 int (*set_options)(struct vport *, struct nlattr *);173174 int (*get_options)(const struct vport *, struct sk_buff *);174174-175175- /* Called with rcu_read_lock or ovs_mutex. */176176- const char *(*get_name)(const struct vport *);177175178176 int (*send)(struct vport *, struct sk_buff *);179177 int (*get_egress_tun_info)(struct vport *, struct sk_buff *,···235239236240static inline const char *ovs_vport_name(struct vport *vport)237241{238238- return vport->dev ? vport->dev->name : vport->ops->get_name(vport);242242+ return vport->dev->name;239243}240244241245int ovs_vport_ops_register(struct vport_ops *ops);