1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix warnings about unused identifiers when compiling without RATELIMIT.

This commit is contained in:
Mark Johnston 2019-08-02 15:19:11 +00:00
parent 99c311c4d1
commit ef34be8beb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350538

View File

@ -4070,6 +4070,7 @@ mlx5e_snd_tag_query(struct m_snd_tag *pmt, union if_snd_tag_query_params *params
}
}
#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, struct if_ratelimit_query_resu
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)