lkml.org 
[lkml]   [2022]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] nvme-tcp: support specifying the congestion-control
I'll let the NVMe/TCP maintainer comment on the actual functionality,
but:

> + p = match_strdup(args);
> + if (!p) {
> + ret = -ENOMEM;
> + goto out;
> + }
> +
> + key = tcp_ca_get_key_by_name(NULL, p, &ecn_ca);
> + if (key == TCP_CA_UNSPEC) {
> + pr_err("congestion control %s not found.\n",
> + p);
> + ret = -EINVAL;
> + kfree(p);
> + goto out;
> + }

We can't just call networking code from nvme-fabrics.ko

\
 
 \ /
  Last update: 2022-09-17 16:15    [W:0.114 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site