[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220304162032.GA12250@lst.de>
Date: Fri, 4 Mar 2022 17:20:32 +0100
From: Christoph Hellwig <hch@....de>
To: Mingbao Sun <sunmingbao@....com>
Cc: Keith Busch <kbusch@...nel.org>, Jens Axboe <axboe@...com>,
Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>,
Chaitanya Kulkarni <kch@...dia.com>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
tyler.sun@...l.com, ping.gan@...l.com, yanxiu.cai@...l.com,
libin.zhang@...l.com, ao.sun@...l.com
Subject: Re: [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
Powered by blists - more mailing lists