Remove obsolete bufring stats in mlx5en(4).

Leftover from when DRBR was removed.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-04-08 08:53:31 +00:00
parent b0b7d978b6
commit d182de8661
2 changed files with 0 additions and 5 deletions

View File

@ -827,7 +827,6 @@ struct mlx5e_sq {
/* pointers to per packet info: write@xmit, read@completion */ /* pointers to per packet info: write@xmit, read@completion */
struct mlx5e_sq_mbuf *mbuf; struct mlx5e_sq_mbuf *mbuf;
struct buf_ring *br;
/* read only */ /* read only */
struct mlx5_wq_cyc wq; struct mlx5_wq_cyc wq;

View File

@ -852,7 +852,6 @@ mlx5e_update_stats_locked(struct mlx5e_priv *priv)
struct mlx5_core_dev *mdev = priv->mdev; struct mlx5_core_dev *mdev = priv->mdev;
struct mlx5e_vport_stats *s = &priv->stats.vport; struct mlx5e_vport_stats *s = &priv->stats.vport;
struct mlx5e_sq_stats *sq_stats; struct mlx5e_sq_stats *sq_stats;
struct buf_ring *sq_br;
#if (__FreeBSD_version < 1100000) #if (__FreeBSD_version < 1100000)
struct ifnet *ifp = priv->ifp; struct ifnet *ifp = priv->ifp;
#endif #endif
@ -902,13 +901,10 @@ mlx5e_update_stats_locked(struct mlx5e_priv *priv)
for (j = 0; j < priv->num_tc; j++) { for (j = 0; j < priv->num_tc; j++) {
sq_stats = &pch->sq[j].stats; sq_stats = &pch->sq[j].stats;
sq_br = pch->sq[j].br;
tso_packets += sq_stats->tso_packets; tso_packets += sq_stats->tso_packets;
tso_bytes += sq_stats->tso_bytes; tso_bytes += sq_stats->tso_bytes;
tx_queue_dropped += sq_stats->dropped; tx_queue_dropped += sq_stats->dropped;
if (sq_br != NULL)
tx_queue_dropped += sq_br->br_drops;
tx_defragged += sq_stats->defragged; tx_defragged += sq_stats->defragged;
tx_offload_none += sq_stats->csum_offload_none; tx_offload_none += sq_stats->csum_offload_none;
} }