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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user