Provide a statistic to track the number of drops in each of the port's
txq's buf_ring. The aggregate for all the queues of a port is already provided in ifnet->if_snd.ifq_drops. MFC after: 3 days.
This commit is contained in:
parent
1113cd31a6
commit
c25f378771
@ -5533,6 +5533,7 @@ t4_ioctl(struct cdev *dev, unsigned long cmd, caddr_t data, int fflag,
|
||||
txq->txpkt_wrs = 0;
|
||||
txq->txpkts_wrs = 0;
|
||||
txq->txpkts_pkts = 0;
|
||||
txq->br->br_drops = 0;
|
||||
txq->no_dmamap = 0;
|
||||
txq->no_desc = 0;
|
||||
}
|
||||
|
@ -2362,6 +2362,8 @@ alloc_txq(struct port_info *pi, struct sge_txq *txq, int idx,
|
||||
SYSCTL_ADD_UQUAD(&pi->ctx, children, OID_AUTO, "txpkts_pkts", CTLFLAG_RD,
|
||||
&txq->txpkts_pkts, "# of frames tx'd using txpkts work requests");
|
||||
|
||||
SYSCTL_ADD_UQUAD(&pi->ctx, children, OID_AUTO, "br_drops", CTLFLAG_RD,
|
||||
&txq->br->br_drops, "# of drops in the buf_ring for this queue");
|
||||
SYSCTL_ADD_UINT(&pi->ctx, children, OID_AUTO, "no_dmamap", CTLFLAG_RD,
|
||||
&txq->no_dmamap, 0, "# of times txq ran out of DMA maps");
|
||||
SYSCTL_ADD_UINT(&pi->ctx, children, OID_AUTO, "no_desc", CTLFLAG_RD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user