nvme: consider also host_iface when checking ip options
authorDaniel Wagner <dwagner@suse.de>
Fri, 29 Jul 2022 14:26:30 +0000 (16:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2022 15:55:24 +0000 (17:55 +0200)
commit4cde03d82e2d0056d20fd5af6a264c7f5e6a3e76
treea53fa8b3478112a689bf08098cbd6550aa22c150
parent1c467e259599864ec925d5b85066a0960320fb3c
nvme: consider also host_iface when checking ip options

It's perfectly fine to use the same traddr and trsvcid more than once
as long we use different host interface. This is used in setups where
the host has more than one interface but the target exposes only one
traddr/trsvcid combination.

Use the same acceptance rules for host_iface as we have for
host_traddr.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Chao Leng <lengchao@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c