Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openvswitch: Remove vport get_name()

Remove unused get_name() function pointer from vport ops.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Pravin B Shelar and committed by
David S. Miller
24d43f32 8e816df8

+1 -5
+1 -5
net/openvswitch/vport.h
··· 157 157 * @get_options: Appends vport-specific attributes for the configuration of an 158 158 * existing vport to a &struct sk_buff. May be %NULL for a vport that does not 159 159 * have any configuration. 160 - * @get_name: Get the device's name. 161 160 * @send: Send a packet on the device. Returns the length of the packet sent, 162 161 * zero for dropped packets or negative for error. 163 162 * @get_egress_tun_info: Get the egress tunnel 5-tuple and other info for ··· 171 172 172 173 int (*set_options)(struct vport *, struct nlattr *); 173 174 int (*get_options)(const struct vport *, struct sk_buff *); 174 - 175 - /* Called with rcu_read_lock or ovs_mutex. */ 176 - const char *(*get_name)(const struct vport *); 177 175 178 176 int (*send)(struct vport *, struct sk_buff *); 179 177 int (*get_egress_tun_info)(struct vport *, struct sk_buff *, ··· 235 239 236 240 static inline const char *ovs_vport_name(struct vport *vport) 237 241 { 238 - return vport->dev ? vport->dev->name : vport->ops->get_name(vport); 242 + return vport->dev->name; 239 243 } 240 244 241 245 int ovs_vport_ops_register(struct vport_ops *ops);