[PATCH v2] nvme: consider also host_iface when checking ip options
Daniel Wagner
dwagner at suse.de
Tue Jul 26 00:18:45 PDT 2022
On Tue, Jul 26, 2022 at 10:11:41AM +0800, Chao Leng wrote:
> Checking host_iface is similar to host_tradr, so some suggestions:
> First, move these codes near checking host_traddr.
We have several places where we have the same sequence as above, that is
traddr, trsvcid and then host_iface, e.g. nvme_class_uevent,
nvmf_free_options, nvmf_get_address. So I'd say we should stick to this
and not start introducing a new ordering scheme.
> Second, the checking logic should be the same as that of host_tradr.
What do you mean with this? We compare the host_iface with strcmp. It is
exactly the same thing we do with traddr and trsvcid.
> It might be better to add a helper to implement host port attribute
> checking. Of course, this can be considered as a separate patch.
As far I can tell Christoph is not a big fan of small one-line helpers
especially if there is only one call place. But as you said, that's his
call :)
More information about the Linux-nvme
mailing list