summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-08-21 16:33:56 +0200
committerDamjan Marion <dmarion@me.com>2019-09-25 22:07:48 +0000
commit9e028d0477ca033ebbaea20914c2a6b1e86b967b (patch)
tree72c3ba5626b164219cd2481f2f37ddb13594f0c5 /src/plugins/avf
parentd8aa2ae327b6fdee188a1604bc205d438e16f594 (diff)
avf: print queue id in packet trace
Type: feature Change-Id: If3deb26b9ee3b9e677c9dc50789bf81fe6c11dee Signed-off-by: Damjan Marion <damarion@cisco.com> (cherry picked from commit c33eddebe8e390ed3d5b817e7e6017ae8a543097)
Diffstat (limited to 'src/plugins/avf')
-rw-r--r--src/plugins/avf/avf.h3
-rw-r--r--src/plugins/avf/format.c6
-rw-r--r--src/plugins/avf/input.c1
3 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/avf/avf.h b/src/plugins/avf/avf.h
index 4994074fdfb..1ddae6671b0 100644
--- a/src/plugins/avf/avf.h
+++ b/src/plugins/avf/avf.h
@@ -320,7 +320,8 @@ avf_rxd_is_not_dd (avf_rx_desc_t * d)
typedef struct
{
- u32 next_index;
+ u16 qid;
+ u16 next_index;
u32 hw_if_index;
u64 qw1s[AVF_RX_MAX_DESC_IN_CHAIN];
} avf_input_trace_t;
diff --git a/src/plugins/avf/format.c b/src/plugins/avf/format.c
index 4def8b5ea32..bc2b94ecc46 100644
--- a/src/plugins/avf/format.c
+++ b/src/plugins/avf/format.c
@@ -131,9 +131,9 @@ format_avf_input_trace (u8 * s, va_list * args)
u32 indent = format_get_indent (s);
int i = 0;
- 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, "avf: %v (%d) qid %u next-node %U",
+ hi->name, t->hw_if_index, t->qid, format_vlib_next_node_name,
+ vm, node->index, t->next_index);
do
{
diff --git a/src/plugins/avf/input.c b/src/plugins/avf/input.c
index fcc5518abeb..d6dda6c4b92 100644
--- a/src/plugins/avf/input.c
+++ b/src/plugins/avf/input.c
@@ -396,6 +396,7 @@ no_more_desc:
vlib_trace_buffer (vm, node, next_index, b, /* follow_chain */ 0);
tr = vlib_add_trace (vm, node, b, sizeof (*tr));
tr->next_index = next_index;
+ tr->qid = qid;
tr->hw_if_index = ad->hw_if_index;
tr->qw1s[0] = ptd->qw1s[i];
for (j = 1; j < AVF_RX_MAX_DESC_IN_CHAIN; j++)