aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-03-18 13:17:00 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-03-27 14:28:48 +0000
commit9bf616ca8973bc543b34b2f7eebdc770400dd615 (patch)
tree6f3ba40005c87214fd973aaec277a01d99290bf9 /src
parentd6420459c751df65a28f38751e9bac02dc475725 (diff)
tap: fix the numa/queue for buffers
Type: fix Change-Id: Ib320171708bebde6d1dae0b2c665f9bcfc9102db Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> (cherry picked from commit 547a61654629370211468679b263c49571ecb1f9)
Diffstat (limited to 'src')
-rw-r--r--src/vnet/devices/tap/tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c
index a1cb69d2cf6..63716a91e2c 100644
--- a/src/vnet/devices/tap/tap.c
+++ b/src/vnet/devices/tap/tap.c
@@ -614,10 +614,10 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
vnet_hw_interface_assign_rx_thread (vnm, vif->hw_if_index, i, ~0);
vnet_hw_interface_set_rx_mode (vnm, vif->hw_if_index, i,
VNET_HW_INTERFACE_RX_MODE_DEFAULT);
+ virtio_vring_set_numa_node (vm, vif, RX_QUEUE (i));
}
vif->per_interface_next_index = ~0;
- virtio_vring_set_numa_node (vm, vif, RX_QUEUE (0));
vif->flags |= VIRTIO_IF_FLAG_ADMIN_UP;
vnet_hw_interface_set_flags (vnm, vif->hw_if_index,
VNET_HW_INTERFACE_FLAG_LINK_UP);