diff options
author | 2017-04-26 22:20:12 +0800 | |
---|---|---|
committer | 2017-04-26 22:20:12 +0800 | |
commit | ebce31b6920e2dcf94ef355b77ccabf552ea8e4c (patch) | |
tree | 4db702f97b20d3bfb2900affb54048baf5e56c13 | |
parent | d74de22904687af10de9dbea04a282afb42fb326 (diff) |
Fix Rx interface issue for NSH-SNAT.NSHSFC-33
Change-Id: I7597de2820d2cd162ccab61b7191e7d4d7fb211e
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index 34aa9ab..63dece4 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -1764,6 +1764,8 @@ nsh_input_map (vlib_main_t * vm, if(PREDICT_FALSE(map0->nsh_action == NSH_ACTION_POP)) { + vnet_buffer(b0)->sw_if_index[VLIB_RX] = map0->nsh_sw_if; + /* Manipulate MD2 */ if(PREDICT_FALSE(hdr0->md_type == 2)) { @@ -1867,6 +1869,8 @@ nsh_input_map (vlib_main_t * vm, if(PREDICT_FALSE(map1->nsh_action == NSH_ACTION_POP)) { + vnet_buffer(b1)->sw_if_index[VLIB_RX] = map1->nsh_sw_if; + /* Manipulate MD2 */ if(PREDICT_FALSE(hdr1->md_type == 2)) { @@ -2053,6 +2057,8 @@ nsh_input_map (vlib_main_t * vm, if(PREDICT_FALSE(map0->nsh_action == NSH_ACTION_POP)) { + vnet_buffer(b0)->sw_if_index[VLIB_RX] = map0->nsh_sw_if; + /* Manipulate MD2 */ if(PREDICT_FALSE(hdr0->md_type == 2)) { |