aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-08-21 16:33:56 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-08-21 15:45:54 +0000
commitc33eddebe8e390ed3d5b817e7e6017ae8a543097 (patch)
treeb0197319938e044a2a3afd779ea235c8c8e0e1f6 /src
parent4bf8888019cbaad44bd3d775bb269042a53bbfc1 (diff)
avf: print queue id in packet trace
Type: feature Change-Id: If3deb26b9ee3b9e677c9dc50789bf81fe6c11dee Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-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++)