Thu Mar 11 02:30:47 2021 UTC ()
Add "TX " to "Queue No Descriptor Available" to make it more understandable.
Same as ixgbe.c rev. 1.278.


(msaitoh)
diff -r1.155 -r1.156 src/sys/dev/pci/ixgbe/ixv.c

cvs diff -r1.155 -r1.156 src/sys/dev/pci/ixgbe/ixv.c (expand / switch to unified diff)

--- src/sys/dev/pci/ixgbe/ixv.c 2021/03/09 10:03:18 1.155
+++ src/sys/dev/pci/ixgbe/ixv.c 2021/03/11 02:30:47 1.156
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/*$NetBSD: ixv.c,v 1.155 2021/03/09 10:03:18 msaitoh Exp $*/ 1/*$NetBSD: ixv.c,v 1.156 2021/03/11 02:30:47 msaitoh Exp $*/
2 2
3/****************************************************************************** 3/******************************************************************************
4 4
5 Copyright (c) 2001-2017, Intel Corporation 5 Copyright (c) 2001-2017, Intel Corporation
6 All rights reserved. 6 All rights reserved.
7 7
8 Redistribution and use in source and binary forms, with or without 8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met: 9 modification, are permitted provided that the following conditions are met:
10 10
11 1. Redistributions of source code must retain the above copyright notice, 11 1. Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer. 12 this list of conditions and the following disclaimer.
13 13
14 2. Redistributions in binary form must reproduce the above copyright 14 2. Redistributions in binary form must reproduce the above copyright
@@ -2659,27 +2659,27 @@ ixv_add_stats_sysctls(struct adapter *ad @@ -2659,27 +2659,27 @@ ixv_add_stats_sysctls(struct adapter *ad
2659 break; 2659 break;
2660 2660
2661 evcnt_attach_dynamic(&adapter->queues[i].irqs, EVCNT_TYPE_INTR, 2661 evcnt_attach_dynamic(&adapter->queues[i].irqs, EVCNT_TYPE_INTR,
2662 NULL, adapter->queues[i].evnamebuf, "IRQs on queue"); 2662 NULL, adapter->queues[i].evnamebuf, "IRQs on queue");
2663 evcnt_attach_dynamic(&adapter->queues[i].handleq, 2663 evcnt_attach_dynamic(&adapter->queues[i].handleq,
2664 EVCNT_TYPE_MISC, NULL, adapter->queues[i].evnamebuf, 2664 EVCNT_TYPE_MISC, NULL, adapter->queues[i].evnamebuf,
2665 "Handled queue in softint"); 2665 "Handled queue in softint");
2666 evcnt_attach_dynamic(&adapter->queues[i].req, EVCNT_TYPE_MISC, 2666 evcnt_attach_dynamic(&adapter->queues[i].req, EVCNT_TYPE_MISC,
2667 NULL, adapter->queues[i].evnamebuf, "Requeued in softint"); 2667 NULL, adapter->queues[i].evnamebuf, "Requeued in softint");
2668 evcnt_attach_dynamic(&txr->tso_tx, EVCNT_TYPE_MISC, 2668 evcnt_attach_dynamic(&txr->tso_tx, EVCNT_TYPE_MISC,
2669 NULL, adapter->queues[i].evnamebuf, "TSO"); 2669 NULL, adapter->queues[i].evnamebuf, "TSO");
2670 evcnt_attach_dynamic(&txr->no_desc_avail, EVCNT_TYPE_MISC, 2670 evcnt_attach_dynamic(&txr->no_desc_avail, EVCNT_TYPE_MISC,
2671 NULL, adapter->queues[i].evnamebuf, 2671 NULL, adapter->queues[i].evnamebuf,
2672 "Queue No Descriptor Available"); 2672 "TX Queue No Descriptor Available");
2673 evcnt_attach_dynamic(&txr->total_packets, EVCNT_TYPE_MISC, 2673 evcnt_attach_dynamic(&txr->total_packets, EVCNT_TYPE_MISC,
2674 NULL, adapter->queues[i].evnamebuf, 2674 NULL, adapter->queues[i].evnamebuf,
2675 "Queue Packets Transmitted"); 2675 "Queue Packets Transmitted");
2676#ifndef IXGBE_LEGACY_TX 2676#ifndef IXGBE_LEGACY_TX
2677 evcnt_attach_dynamic(&txr->pcq_drops, EVCNT_TYPE_MISC, 2677 evcnt_attach_dynamic(&txr->pcq_drops, EVCNT_TYPE_MISC,
2678 NULL, adapter->queues[i].evnamebuf, 2678 NULL, adapter->queues[i].evnamebuf,
2679 "Packets dropped in pcq"); 2679 "Packets dropped in pcq");
2680#endif 2680#endif
2681 2681
2682#ifdef LRO 2682#ifdef LRO
2683 struct lro_ctrl *lro = &rxr->lro; 2683 struct lro_ctrl *lro = &rxr->lro;
2684#endif /* LRO */ 2684#endif /* LRO */
2685 2685