aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2020-12-08 00:42:43 +0800
committerDamjan Marion <dmarion@me.com>2021-04-14 10:26:07 +0000
commit91f102ed84dac1591e08587facf71dc386b7c087 (patch)
treeee53d1437847056ac902423978cb4ad597338d2d /src/vnet/flow
parent6e9b0030d72c58d14cebcb0290fedcc25556749d (diff)
flow: The type of vni in VxLAN flow should be u32
Type: fix Signed-off-by: Chenmin Sun <chenmin.sun@intel.com> Change-Id: I40732dfb4fee4a5cfd699a8badea13d070f6b367
Diffstat (limited to 'src/vnet/flow')
-rw-r--r--src/vnet/flow/flow.h10
-rw-r--r--src/vnet/flow/flow_cli.c2
-rw-r--r--src/vnet/flow/flow_types.api6
3 files changed, 8 insertions, 10 deletions
diff --git a/src/vnet/flow/flow.h b/src/vnet/flow/flow.h
index 04305edf92a..3ae5b6bdc47 100644
--- a/src/vnet/flow/flow.h
+++ b/src/vnet/flow/flow.h
@@ -89,13 +89,11 @@
_fe(ip_port_and_mask_t, src_port) \
_fe(ip_port_and_mask_t, dst_port)
-#define foreach_flow_entry_ip4_vxlan \
- foreach_flow_entry_ip4_n_tuple \
- _fe(u16, vni)
+#define foreach_flow_entry_ip4_vxlan \
+ foreach_flow_entry_ip4_n_tuple _fe (u32, vni)
-#define foreach_flow_entry_ip6_vxlan \
- foreach_flow_entry_ip6_n_tuple \
- _fe(u16, vni)
+#define foreach_flow_entry_ip6_vxlan \
+ foreach_flow_entry_ip6_n_tuple _fe (u32, vni)
#define foreach_flow_entry_ip4_gtpc \
foreach_flow_entry_ip4_n_tuple \
diff --git a/src/vnet/flow/flow_cli.c b/src/vnet/flow/flow_cli.c
index aea2534ec1a..e2a3141c551 100644
--- a/src/vnet/flow/flow_cli.c
+++ b/src/vnet/flow/flow_cli.c
@@ -353,7 +353,7 @@ test_flow (vlib_main_t * vm, unformat_input_t * input,
u32 hw_if_index = ~0, flow_index = ~0;
int rv;
u32 teid = 0, session_id = 0, spi = 0;
- u16 vni = 0;
+ u32 vni = 0;
vnet_flow_type_t type = VNET_FLOW_TYPE_UNKNOWN;
ip4_address_and_mask_t ip4s = { };
ip4_address_and_mask_t ip4d = { };
diff --git a/src/vnet/flow/flow_types.api b/src/vnet/flow/flow_types.api
index 7df46d2131d..86f7ce128cb 100644
--- a/src/vnet/flow/flow_types.api
+++ b/src/vnet/flow/flow_types.api
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-option version = "0.0.2";
+option version = "0.0.3";
import "vnet/ethernet/ethernet_types.api";
import "vnet/ip/ip_types.api";
@@ -157,7 +157,7 @@ typedef flow_ip4_vxlan
vl_api_ip_prot_and_mask_t protocol;
vl_api_ip_port_and_mask_t src_port;
vl_api_ip_port_and_mask_t dst_port;
- u16 vni;
+ u32 vni;
};
typedef flow_ip6_vxlan
@@ -168,7 +168,7 @@ typedef flow_ip6_vxlan
vl_api_ip_prot_and_mask_t protocol;
vl_api_ip_port_and_mask_t src_port;
vl_api_ip_port_and_mask_t dst_port;
- u16 vni;
+ u32 vni;
};
typedef flow_ip4_gtpc