aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_format.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-05-05 14:26:38 +0200
committerDamjan Marion <dmarion@me.com>2021-05-06 10:28:02 +0000
commit36f7a6aeb021a549f2d684868303c9891bc0dd00 (patch)
tree730f3b7ed52c07e52d863d5f467debcb4c4ca8c7 /src/vnet/interface_format.c
parent11e0d752e67ac3da804e2af798d12995ae401434 (diff)
vlib: fix the offload flags size
Type: fix Change-Id: I433fe3799975fe3ba00fa30226f6e8dae34e88fc Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/interface_format.c')
-rw-r--r--src/vnet/interface_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/interface_format.c b/src/vnet/interface_format.c
index 036ca53174c..86a3d594ac7 100644
--- a/src/vnet/interface_format.c
+++ b/src/vnet/interface_format.c
@@ -745,7 +745,7 @@ unformat_vnet_buffer_offload_flags (unformat_input_t *input, va_list *args)
{
u32 *flagp = va_arg (*args, u32 *);
int rv = 0;
- u32 oflags = 0;
+ vnet_buffer_oflags_t oflags = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
@@ -762,7 +762,7 @@ unformat_vnet_buffer_offload_flags (unformat_input_t *input, va_list *args)
else break;
}
if (rv)
- *flagp = oflags;
+ *flagp = (u32) oflags;
return rv;
}