aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2023-04-25 11:15:14 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-05-16 09:27:16 +0000
commit24d7e72aa5aecc46d6871767b75a7f8ca9f545c0 (patch)
tree4825b73827b6c863d894decfd940b396b444e706 /src/vnet/flow
parentc405f755e3e534432e082284ecf5c78bfb57376e (diff)
flow: fix wrong to use ntohl function to u64 type variable
This caused that failed to create flow rule with rss types. Type: fix Signed-off-by: Yulong Pei <yulong.pei@intel.com> Change-Id: I77696286a32804cbe884075cb027eec19eb5c7cb Signed-off-by: Yulong Pei <yulong.pei@intel.com>
Diffstat (limited to 'src/vnet/flow')
-rw-r--r--src/vnet/flow/flow_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/flow/flow_api.c b/src/vnet/flow/flow_api.c
index 0e25fb3017b..29ba9e05edf 100644
--- a/src/vnet/flow/flow_api.c
+++ b/src/vnet/flow/flow_api.c
@@ -328,7 +328,7 @@ vl_api_flow_add_v2_t_handler (vl_api_flow_add_v2_t *mp)
flow.buffer_advance = ntohl (f->buffer_advance);
flow.queue_index = ntohl (f->queue_index);
flow.queue_num = ntohl (f->queue_num);
- flow.rss_types = ntohl (f->rss_types);
+ flow.rss_types = clib_net_to_host_u64 (f->rss_types);
flow.rss_fun = ntohl (f->rss_fun);
switch (flow.type)