2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

openvswitch.h: Use odp_port_t for port numbers in userspace-only structs.

Using the correct type reduces the need for type conversions.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jan Scheurich <jan.scheurich@ericsson.com>
Reviewed-by: nickcooper-zhangtonghao <nic@opencloud.tech>
This commit is contained in:
Ben Pfaff
2017-06-18 08:59:30 +08:00
parent 4804d294a1
commit 81765c00a1
5 changed files with 7 additions and 7 deletions

View File

@@ -4956,7 +4956,7 @@ push_tnl_action(const struct dp_netdev_pmd_thread *pmd,
data = nl_attr_get(attr);
tun_port = pmd_tnl_port_cache_lookup(pmd, u32_to_odp(data->tnl_port));
tun_port = pmd_tnl_port_cache_lookup(pmd, data->tnl_port);
if (!tun_port) {
err = -EINVAL;
goto error;