Skip to content

Commit 24d43f3

Browse files
Pravin B Shelardavem330
authored andcommitted
openvswitch: Remove vport get_name()
Remove unused get_name() function pointer from vport ops. Signed-off-by: Pravin B Shelar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8e816df commit 24d43f3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

net/openvswitch/vport.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ struct vport_parms {
157157
* @get_options: Appends vport-specific attributes for the configuration of an
158158
* existing vport to a &struct sk_buff. May be %NULL for a vport that does not
159159
* have any configuration.
160-
* @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
@@ -173,9 +172,6 @@ struct vport_ops {
173172
int (*set_options)(struct vport *, struct nlattr *);
174173
int (*get_options)(const struct vport *, struct sk_buff *);
175174

176-
/* Called with rcu_read_lock or ovs_mutex. */
177-
const char *(*get_name)(const struct vport *);
178-
179175
int (*send)(struct vport *, struct sk_buff *);
180176
int (*get_egress_tun_info)(struct vport *, struct sk_buff *,
181177
struct ip_tunnel_info *);
@@ -239,7 +235,7 @@ static inline void ovs_skb_postpush_rcsum(struct sk_buff *skb,
239235

240236
static inline const char *ovs_vport_name(struct vport *vport)
241237
{
242-
return vport->dev ? vport->dev->name : vport->ops->get_name(vport);
238+
return vport->dev->name;
243239
}
244240

245241
int ovs_vport_ops_register(struct vport_ops *ops);

0 commit comments

Comments
 (0)