svn commit: r367153 - head/sys/dev/mlx5/mlx5_en
John Baldwin
jhb at FreeBSD.org
Fri Oct 30 00:06:37 UTC 2020
Author: jhb
Date: Fri Oct 30 00:06:36 2020
New Revision: 367153
URL: https://svnweb.freebsd.org/changeset/base/367153
Log:
Fix a couple of silly bugs in r367149.
- Assign the TLS rate limit value to the correct member of the
rl_params for the nested rate limit tag.
- Remove a dead condition.
Pointy hat to: jhb
Modified:
head/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c Fri Oct 30 00:03:59 2020 (r367152)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c Fri Oct 30 00:06:36 2020 (r367153)
@@ -383,13 +383,11 @@ mlx5e_tls_snd_tag_alloc(struct ifnet *ifp,
#if defined(RATELIMIT) && defined(IF_SND_TAG_TYPE_TLS_RATE_LIMIT)
case IF_SND_TAG_TYPE_TLS_RATE_LIMIT:
rl_params.hdr.type = IF_SND_TAG_TYPE_RATE_LIMIT;
- rl_params.max_rate = params->tls_rate_limit.max_rate;
+ rl_params.rate_limit.max_rate = params->tls_rate_limit.max_rate;
break;
#endif
case IF_SND_TAG_TYPE_TLS:
rl_params.hdr.type = IF_SND_TAG_TYPE_UNLIMITED;
- if (error)
- goto failure;
break;
default:
error = EOPNOTSUPP;
More information about the svn-src-head
mailing list