aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2017-04-11 18:43:30 +0800
committerHongjun Ni <hongjun.ni@intel.com>2017-04-11 18:43:30 +0800
commit56f2c156b1697d68fac307433754dc2984abedec (patch)
treec37240822a099ddcde34762eb3a76b58e2dcf9e4
parent15f2609217750288448567f5e10be08cef71cd65 (diff)
NSH-Classifier failed and cause packets dropped. NSHSFC-28
Change-Id: I0a4c8d6bf6bb3487b73d425060c7398b020f03e0 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
-rw-r--r--nsh-plugin/nsh/nsh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index bfa75fd..f2d4685 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -1654,7 +1654,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi0 = vnet_buffer(b0)->l2_classify.opaque_index;
+ nsp_nsi0 = clib_host_to_net_u32(vnet_buffer(b0)->l2_classify.opaque_index);
}
else
{
@@ -1686,7 +1686,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi1 = vnet_buffer(b1)->l2_classify.opaque_index;
+ nsp_nsi1 = clib_host_to_net_u32(vnet_buffer(b1)->l2_classify.opaque_index);
}
else
{
@@ -1959,7 +1959,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi0 = vnet_buffer(b0)->l2_classify.opaque_index;
+ nsp_nsi0 = clib_host_to_net_u32(vnet_buffer(b0)->l2_classify.opaque_index);
}
else if(node_type == NSH_AWARE_VNF_PROXY_TYPE)
{