diff options
author | Steven <sluong@cisco.com> | 2018-03-30 22:18:11 -0700 |
---|---|---|
committer | Steven <sluong@cisco.com> | 2018-03-30 22:26:40 -0700 |
commit | 074f698be5c2e6afc9df776b56a366bc3f404d95 (patch) | |
tree | d41e847538899f077446d7fab10edcc33904752f /src/vnet/devices/tap | |
parent | 3744fc7abce0cf8694d64b670589e35c6d7bf881 (diff) |
tapv2: Sporadic SIGABRT in ethernet_input [VPP-1183]
virtio_free_rx_buffers uses the wrong slot in the vring to get
the buffer index. It uses desc_next. It should be last_used_idx
which is the slot number for the first valid descriptor.
Change-Id: I6b62b794f06869fbffffce45430b8b2e37b1266c
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap')
-rw-r--r-- | src/vnet/devices/tap/cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/devices/tap/cli.c b/src/vnet/devices/tap/cli.c index c17599afdad..9d86159c574 100644 --- a/src/vnet/devices/tap/cli.c +++ b/src/vnet/devices/tap/cli.c @@ -265,8 +265,9 @@ tap_show_command_fn (vlib_main_t * vm, unformat_input_t * input, // RX = 0, TX = 1 vring = vec_elt_at_index (vif->vrings, i); vlib_cli_output (vm, " Virtqueue (%s)", (i & 1) ? "TX" : "RX"); - vlib_cli_output (vm, " qsz %d, last_used_idx %d, desc_in_use %d", - vring->size, vring->last_used_idx, + vlib_cli_output (vm, + " qsz %d, last_used_idx %d, desc_next %d, desc_in_use %d", + vring->size, vring->last_used_idx, vring->desc_next, vring->desc_in_use); vlib_cli_output (vm, " avail.flags 0x%x avail.idx %d used.flags 0x%x used.idx %d", |