diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2021-12-13 18:32:42 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-12-14 13:45:21 +0000 |
commit | b7e4e6d1d24685cec2b1b8c72998661ae237fe94 (patch) | |
tree | 01149cbf3e751a3215161da9b7945b09b573ac0c /src/vnet/devices/tap | |
parent | 2e5921b08b167793eacf3085a98344ad00afb5ac (diff) |
virtio: integrate with new tx infra
Type: improvement
Change-Id: I337ec63d0868f665329d68eadf1744e080b73a0d
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap')
-rw-r--r-- | src/vnet/devices/tap/tap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c index 4c0b4e0251c..a6c9cefc3bf 100644 --- a/src/vnet/devices/tap/tap.c +++ b/src/vnet/devices/tap/tap.c @@ -87,6 +87,8 @@ tap_free (vlib_main_t * vm, virtio_if_t * vif) clib_error_t *err = 0; int i; + virtio_pre_input_node_disable (vm, vif); + /* *INDENT-OFF* */ vec_foreach_index (i, vif->vhost_fds) if (vif->vhost_fds[i] != -1) close (vif->vhost_fds[i]); @@ -694,7 +696,9 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args) vnet_sw_interface_set_mtu (vnm, hw->sw_if_index, hw->max_packet_bytes); } + virtio_pre_input_node_enable (vm, vif); virtio_vring_set_rx_queues (vm, vif); + virtio_vring_set_tx_queues (vm, vif); vif->per_interface_next_index = ~0; vif->flags |= VIRTIO_IF_FLAG_ADMIN_UP; |