]> www.infradead.org Git - users/sagi/libnvme.git/commit
nbft: avoid duplicate entries in ssns->hfis
authorMartin Wilck <mwilck@suse.com>
Thu, 11 Jan 2024 10:02:11 +0000 (11:02 +0100)
committerDaniel Wagner <wagi@monom.org>
Mon, 5 Feb 2024 09:35:32 +0000 (10:35 +0100)
commit09f457737a4289f074c142b6d40788600572927f
tree73ae97b72cab7559e866872c099f02c403d1463a
parent220e8872f8e1c9e8c7fee35180bb572dc6f6c686
nbft: avoid duplicate entries in ssns->hfis

The NVMe boot specification does not disallow listing the primary
HFI index again in the secondary HFI list, or listing the same
index multiple times in the secondary HFI list. But such duplicate
entries aren't helpful for consumers of this data. In the worst
case, they might lead to confusion and misconfiguration.
Suppress them.

Signed-off-by: Martin Wilck <mwilck@suse.com>
src/nvme/nbft.c