svn commit: r359857 - stable/11/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Apr 13 09:05:21 UTC 2020
Author: hselasky
Date: Mon Apr 13 09:05:21 2020
New Revision: 359857
URL: https://svnweb.freebsd.org/changeset/base/359857
Log:
MFC r359723:
Remove obsolete bufring stats in mlx5en(4).
Leftover from when DRBR was removed.
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/mlx5_en/en.h
stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/mlx5_en/en.h
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/en.h Mon Apr 13 09:04:32 2020 (r359856)
+++ stable/11/sys/dev/mlx5/mlx5_en/en.h Mon Apr 13 09:05:21 2020 (r359857)
@@ -816,7 +816,6 @@ struct mlx5e_sq {
/* pointers to per packet info: write at xmit, read at completion */
struct mlx5e_sq_mbuf *mbuf;
- struct buf_ring *br;
/* read only */
struct mlx5_wq_cyc wq;
Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Mon Apr 13 09:04:32 2020 (r359856)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Mon Apr 13 09:05:21 2020 (r359857)
@@ -837,7 +837,6 @@ mlx5e_update_stats_locked(struct mlx5e_priv *priv)
struct mlx5_core_dev *mdev = priv->mdev;
struct mlx5e_vport_stats *s = &priv->stats.vport;
struct mlx5e_sq_stats *sq_stats;
- struct buf_ring *sq_br;
#if (__FreeBSD_version < 1100000)
struct ifnet *ifp = priv->ifp;
#endif
@@ -887,13 +886,10 @@ mlx5e_update_stats_locked(struct mlx5e_priv *priv)
for (j = 0; j < priv->num_tc; j++) {
sq_stats = &pch->sq[j].stats;
- sq_br = pch->sq[j].br;
tso_packets += sq_stats->tso_packets;
tso_bytes += sq_stats->tso_bytes;
tx_queue_dropped += sq_stats->dropped;
- if (sq_br != NULL)
- tx_queue_dropped += sq_br->br_drops;
tx_defragged += sq_stats->defragged;
tx_offload_none += sq_stats->csum_offload_none;
}
More information about the svn-src-stable-11
mailing list