Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2019 15:19:11 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350538 - head/sys/dev/mlx5/mlx5_en
Message-ID:  <201908021519.x72FJBGw026717@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Aug  2 15:19:11 2019
New Revision: 350538
URL: https://svnweb.freebsd.org/changeset/base/350538

Log:
  Fix warnings about unused identifiers when compiling without RATELIMIT.

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Fri Aug  2 11:17:07 2019	(r350537)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Fri Aug  2 15:19:11 2019	(r350538)
@@ -4070,6 +4070,7 @@ mlx5e_snd_tag_query(struct m_snd_tag *pmt, union if_sn
 	}
 }
 
+#ifdef RATELIMIT
 #define NUM_HDWR_RATES_MLX 13
 static const uint64_t adapter_rates_mlx[NUM_HDWR_RATES_MLX] = {
 	135375,			/* 1,083,000 */
@@ -4111,6 +4112,7 @@ mlx5e_ratelimit_query(struct ifnet *ifp __unused, stru
 	q->number_of_rates = NUM_HDWR_RATES_MLX;
 	q->min_segment_burst = 1;
 }
+#endif
 
 static void
 mlx5e_snd_tag_free(struct m_snd_tag *pmt)



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