diff options
author | Damjan Marion <damarion@cisco.com> | 2018-12-25 09:41:17 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2018-12-26 12:49:04 +0100 |
commit | eb25abdfd8d39261430c73028c11b6a94cacf818 (patch) | |
tree | 2b8f87a8facb8d33faf93c11be7627a06e0fc9fb /src/plugins/avf/format.c | |
parent | 76bc13008c392dfe182d2bd9f2bb30456f3aef69 (diff) |
avf: optimize RX function
Change-Id: Icd1e9638cdb288e94196391a2c85f2eaaf65387e
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/format.c')
-rw-r--r-- | src/plugins/avf/format.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/avf/format.c b/src/plugins/avf/format.c index ed99e5861c8..923f2a2473a 100644 --- a/src/plugins/avf/format.c +++ b/src/plugins/avf/format.c @@ -128,14 +128,17 @@ format_avf_input_trace (u8 * s, va_list * args) vnet_main_t *vnm = vnet_get_main (); vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, t->hw_if_index); u32 indent = format_get_indent (s); - avf_rx_vector_entry_t *rxve = &t->rxve; s = format (s, "avf: %v (%d) next-node %U", hi->name, t->hw_if_index, format_vlib_next_node_name, vm, node->index, t->next_index); + s = format (s, "\n%Ustatus 0x%x error 0x%x ptype 0x%x length %u", - format_white_space, indent + 2, rxve->status, rxve->error, - rxve->ptype, rxve->length); + format_white_space, indent + 2, + t->qw1 & pow2_mask (19), + (t->qw1 >> AVF_RXD_ERROR_SHIFT) & pow2_mask (8), + (t->qw1 >> AVF_RXD_PTYPE_SHIFT) & pow2_mask (8), + (t->qw1 >> AVF_RXD_LEN_SHIFT)); return s; } |