Commit 2f7066ad authored by Jean Sacren's avatar Jean Sacren Committed by David S. Miller
Browse files

openvswitch: fix struct geneve_port member name

commit 6b001e68

 ("openvswitch: Use Geneve device.")

The commit above introduced 'port_no' as the name for the member of
struct geneve_port. The correct name should be 'dst_port' as described
in the kernel doc. Let's fix that member name and all the pertinent
instances so that both doc and code would be consistent.
Signed-off-by: default avatarJean Sacren <sakiwit@gmail.com>
Acked-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5ea03042
...@@ -34,7 +34,7 @@ static struct vport_ops ovs_geneve_vport_ops; ...@@ -34,7 +34,7 @@ static struct vport_ops ovs_geneve_vport_ops;
* @dst_port: destination port. * @dst_port: destination port.
*/ */
struct geneve_port { struct geneve_port {
u16 port_no; u16 dst_port;
}; };
static inline struct geneve_port *geneve_vport(const struct vport *vport) static inline struct geneve_port *geneve_vport(const struct vport *vport)
...@@ -47,7 +47,7 @@ static int geneve_get_options(const struct vport *vport, ...@@ -47,7 +47,7 @@ static int geneve_get_options(const struct vport *vport,
{ {
struct geneve_port *geneve_port = geneve_vport(vport); struct geneve_port *geneve_port = geneve_vport(vport);
if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, geneve_port->port_no)) if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, geneve_port->dst_port))
return -EMSGSIZE; return -EMSGSIZE;
return 0; return 0;
} }
...@@ -83,7 +83,7 @@ static struct vport *geneve_tnl_create(const struct vport_parms *parms) ...@@ -83,7 +83,7 @@ static struct vport *geneve_tnl_create(const struct vport_parms *parms)
return vport; return vport;
geneve_port = geneve_vport(vport); geneve_port = geneve_vport(vport);
geneve_port->port_no = dst_port; geneve_port->dst_port = dst_port;
rtnl_lock(); rtnl_lock();
dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port); dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port);
......
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