diff options
author | hselasky <hselasky@FreeBSD.org> | 2017-08-15 13:37:04 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2017-08-15 13:37:04 +0000 |
commit | 6e2ab4b17806cd19d7da2672bce3e117eb842e6b (patch) | |
tree | dd2e46af2b489d420f8859410313174d24dc6be8 /sys/dev | |
parent | 86d48b3a870acf04513f3d115588634cdb736663 (diff) | |
download | FreeBSD-src-6e2ab4b17806cd19d7da2672bce3e117eb842e6b.zip FreeBSD-src-6e2ab4b17806cd19d7da2672bce3e117eb842e6b.tar.gz |
MFC r322250:
Count drop events due to lack of PCI bandwidth as queue drops and not as
input errors in the mlx5en(4) driver. This improves the sysadmin view of
physical port errors.
Approved by: re (kib)
Submitted by: gallatin@
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index 47d1b10..8e8c025 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -552,7 +552,6 @@ mlx5e_update_stats_work(struct work_struct *work) priv->stats.pport.alignment_err + priv->stats.pport.check_seq_err + priv->stats.pport.crc_align_errors + - priv->stats.pport.drop_events + priv->stats.pport.in_range_len_errors + priv->stats.pport.jabbers + priv->stats.pport.out_of_range_len + @@ -561,7 +560,8 @@ mlx5e_update_stats_work(struct work_struct *work) priv->stats.pport.too_long_errors + priv->stats.pport.undersize_pkts + priv->stats.pport.unsupported_op_rx; - ifp->if_iqdrops = s->rx_out_of_buffer; + ifp->if_iqdrops = s->rx_out_of_buffer + + priv->stats.pport.drop_events; ifp->if_opackets = s->tx_packets; ifp->if_oerrors = s->tx_error_packets; ifp->if_snd.ifq_drops = s->tx_queue_dropped; @@ -2474,7 +2474,6 @@ mlx5e_get_counter(struct ifnet *ifp, ift_counter cnt) priv->stats.pport.alignment_err + priv->stats.pport.check_seq_err + priv->stats.pport.crc_align_errors + - priv->stats.pport.drop_events + priv->stats.pport.in_range_len_errors + priv->stats.pport.jabbers + priv->stats.pport.out_of_range_len + @@ -2485,7 +2484,8 @@ mlx5e_get_counter(struct ifnet *ifp, ift_counter cnt) priv->stats.pport.unsupported_op_rx; break; case IFCOUNTER_IQDROPS: - retval = priv->stats.vport.rx_out_of_buffer; + retval = priv->stats.vport.rx_out_of_buffer + + priv->stats.pport.drop_events; break; case IFCOUNTER_OPACKETS: retval = priv->stats.vport.tx_packets; |