diff options
author | Pierre Pfister <ppfister@cisco.com> | 2017-10-10 06:50:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2017-10-10 06:50:05 +0000 |
commit | 29a4b5c96de9010b672286f6fffcca95c0f11bdd (patch) | |
tree | 3934466e6021824a69f513a03442bfa0667ba9c8 /router | |
parent | 701b794fe0bbe2ea1238fb8273c5611140bb802f (diff) | |
parent | 50a852c19dbf40a4564d33c2878285552b593427 (diff) |
Merge "[router] Set VLIB_RX metadata to valid sw_if_index"
Diffstat (limited to 'router')
-rw-r--r-- | router/router/tap_inject_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/router/router/tap_inject_node.c b/router/router/tap_inject_node.c index 5429846..a7e46ce 100644 --- a/router/router/tap_inject_node.c +++ b/router/router/tap_inject_node.c @@ -237,7 +237,7 @@ tap_rx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * f, int fd) b = vlib_get_buffer (vm, bi[0]); - vnet_buffer (b)->sw_if_index[VLIB_RX] = ~0; + vnet_buffer (b)->sw_if_index[VLIB_RX] = sw_if_index; vnet_buffer (b)->sw_if_index[VLIB_TX] = sw_if_index; n_bytes_left = n_bytes - VLIB_BUFFER_DATA_SIZE; |