Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2020 09:05:21 +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-11@freebsd.org
Subject:   svn commit: r359857 - stable/11/sys/dev/mlx5/mlx5_en
Message-ID:  <202004130905.03D95LYS002360@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@xmit, read@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;
 		}



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