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
This commit is contained in:
John Baldwin 2020-10-30 00:06:36 +00:00
parent ac8f506b85
commit 418b5444f8

View File

@ -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;