svn commit: r350538 - head/sys/dev/mlx5/mlx5_en
Mark Johnston
markj at FreeBSD.org
Fri Aug 2 15:19:11 UTC 2019
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)
More information about the svn-src-head
mailing list