Commit 24d43f32 authored by Pravin B Shelar's avatar Pravin B Shelar Committed by David S. Miller

openvswitch: Remove vport get_name()

Remove unused get_name() function pointer from vport ops.
Signed-off-by: default avatarPravin B Shelar <pshelar@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e816df8
...@@ -157,7 +157,6 @@ struct vport_parms { ...@@ -157,7 +157,6 @@ struct vport_parms {
* @get_options: Appends vport-specific attributes for the configuration of an * @get_options: Appends vport-specific attributes for the configuration of an
* existing vport to a &struct sk_buff. May be %NULL for a vport that does not * existing vport to a &struct sk_buff. May be %NULL for a vport that does not
* have any configuration. * have any configuration.
* @get_name: Get the device's name.
* @send: Send a packet on the device. Returns the length of the packet sent, * @send: Send a packet on the device. Returns the length of the packet sent,
* zero for dropped packets or negative for error. * zero for dropped packets or negative for error.
* @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for * @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for
...@@ -173,9 +172,6 @@ struct vport_ops { ...@@ -173,9 +172,6 @@ struct vport_ops {
int (*set_options)(struct vport *, struct nlattr *); int (*set_options)(struct vport *, struct nlattr *);
int (*get_options)(const struct vport *, struct sk_buff *); int (*get_options)(const struct vport *, struct sk_buff *);
/* Called with rcu_read_lock or ovs_mutex. */
const char *(*get_name)(const struct vport *);
int (*send)(struct vport *, struct sk_buff *); int (*send)(struct vport *, struct sk_buff *);
int (*get_egress_tun_info)(struct vport *, struct sk_buff *, int (*get_egress_tun_info)(struct vport *, struct sk_buff *,
struct ip_tunnel_info *); struct ip_tunnel_info *);
...@@ -239,7 +235,7 @@ static inline void ovs_skb_postpush_rcsum(struct sk_buff *skb, ...@@ -239,7 +235,7 @@ static inline void ovs_skb_postpush_rcsum(struct sk_buff *skb,
static inline const char *ovs_vport_name(struct vport *vport) static inline const char *ovs_vport_name(struct vport *vport)
{ {
return vport->dev ? vport->dev->name : vport->ops->get_name(vport); return vport->dev->name;
} }
int ovs_vport_ops_register(struct vport_ops *ops); int ovs_vport_ops_register(struct vport_ops *ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment