aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2021-05-10 20:11:49 +0800
committerDamjan Marion <dmarion@me.com>2021-05-12 08:45:08 +0000
commitee32d66802a39f97643e2de263390ddfa5aa09f6 (patch)
tree7e6af325c172505791defe925cd3afd0a7f5c330 /src/vnet/flow
parent2c876f9c587a359ffd7191723cf616b14dcb9cf1 (diff)
flow: fix vxlan vni convert bug
This patch fixes a vxlan vni field conversion bug in flow api layer Type: fix Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: I37b2ffb54792f48b390ff42da577db2c4869d253
Diffstat (limited to 'src/vnet/flow')
-rw-r--r--src/vnet/flow/flow_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/flow/flow_api.c b/src/vnet/flow/flow_api.c
index 4d0c536f113..3aa4e0c5b75 100644
--- a/src/vnet/flow/flow_api.c
+++ b/src/vnet/flow/flow_api.c
@@ -186,7 +186,7 @@ ipv4_vxlan_flow_convert (vl_api_flow_ip4_vxlan_t *vl_api_flow,
port_and_mask_convert (&vl_api_flow->src_port, &f->src_port);
port_and_mask_convert (&vl_api_flow->dst_port, &f->dst_port);
- f->vni = ntohs (vl_api_flow->vni);
+ f->vni = ntohl (vl_api_flow->vni);
}
static inline void
@@ -200,7 +200,7 @@ ipv6_vxlan_flow_convert (vl_api_flow_ip6_vxlan_t *vl_api_flow,
port_and_mask_convert (&vl_api_flow->src_port, &f->src_port);
port_and_mask_convert (&vl_api_flow->dst_port, &f->dst_port);
- f->vni = ntohs (vl_api_flow->vni);
+ f->vni = ntohl (vl_api_flow->vni);
}
static inline void