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-17 03:47:24 +0000
commite4b963e230651b89978d6e3477d1aa32fa5c0a66 (patch)
tree52332d477f6dede36ca986991fc9d679b208eedf
parent8aae5e9e4261466fda2ab4d080775e3ef7bb2f8d (diff)
NSH-Classifier failed and cause packets dropped. NSHSFC-28
Change-Id: I0a4c8d6bf6bb3487b73d425060c7398b020f03e0 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 56f2c156b1697d68fac307433754dc2984abedec)
-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 19ead91..a59609a 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -1657,7 +1657,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
{
@@ -1689,7 +1689,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
{
@@ -1962,7 +1962,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)
{