Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2020 09:04:32 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359856 - stable/12/sys/dev/mlx5/mlx5_en
Message-ID:  <202004130904.03D94WMi002146@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Apr 13 09:04:32 2020
New Revision: 359856
URL: https://svnweb.freebsd.org/changeset/base/359856

Log:
  MFC r359723:
  Remove obsolete bufring stats in mlx5en(4).
  
  Leftover from when DRBR was removed.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/12/sys/dev/mlx5/mlx5_en/en.h
  stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5_en/en.h
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_en/en.h	Mon Apr 13 09:02:17 2020	(r359855)
+++ stable/12/sys/dev/mlx5/mlx5_en/en.h	Mon Apr 13 09:04:32 2020	(r359856)
@@ -822,7 +822,6 @@ struct mlx5e_sq {
 
 	/* pointers to per packet info: write@xmit, read@completion */
 	struct	mlx5e_sq_mbuf *mbuf;
-	struct	buf_ring *br;
 
 	/* read only */
 	struct	mlx5_wq_cyc wq;

Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon Apr 13 09:02:17 2020	(r359855)
+++ stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Mon Apr 13 09:04:32 2020	(r359856)
@@ -845,7 +845,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
@@ -895,13 +894,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;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004130904.03D94WMi002146>