diff options
author | Damjan Marion <damarion@cisco.com> | 2021-05-22 12:13:48 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2021-05-25 09:38:04 +0000 |
commit | 3755ac11967f4e1aea60f9054bafeaaed3855d0e (patch) | |
tree | cfa6977a830b778d4535588b1a657ba221ebf0e8 /src | |
parent | 623b8b0164034b2cf132e84aaa5efc5ef39eaf36 (diff) |
interface: show if tx queue is shared
Type: improvement
Change-Id: Idb48f835730db6c652c4b0e6ef310c7f36599a72
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/interface_format.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vnet/interface_format.c b/src/vnet/interface_format.c index f66797c9463..4acd6ab63e6 100644 --- a/src/vnet/interface_format.c +++ b/src/vnet/interface_format.c @@ -212,14 +212,16 @@ format_vnet_hw_interface (u8 * s, va_list * args) if (vec_len (hi->tx_queue_indices)) { s = format (s, "\n%UTX Queues:", format_white_space, indent + 2); - s = format (s, "\n%U%-6s%-15s", format_white_space, indent + 4, "queue", - "thread(s)"); + s = format (s, "\n%U%-6s%-7s%-15s", format_white_space, indent + 4, + "queue", "shared", "thread(s)"); for (int i = 0; i < vec_len (hi->tx_queue_indices); i++) { vnet_hw_if_tx_queue_t *txq; txq = vnet_hw_if_get_tx_queue (vnm, hi->tx_queue_indices[i]); - s = format (s, "\n%U%-6u%U", format_white_space, indent + 4, - txq->queue_id, format_bitmap_list, txq->threads); + s = format ( + s, "\n%U%-6u%-7s%U", format_white_space, indent + 4, txq->queue_id, + clib_bitmap_count_set_bits (txq->threads) > 1 ? "yes" : "no", + format_bitmap_list, txq->threads); } } |