Skip to content

Commit 0985dca

Browse files
committed
Fix route type check in pax_get_nvme_pf_list function
Only PAX with route type of uni-cast is reachable
1 parent 3381299 commit 0985dca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/microchip/switchtec-nvme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ static int pax_get_nvme_pf_list(struct pax_nvme_device *pax,
391391
r_type = fg.body.pax_idx[i].reachable_type;
392392

393393
if (fg.hdr.pax_idx == i ||
394-
r_type == SWITCHTEC_GFMS_DB_REACH_UC ||
395-
r_type == SWITCHTEC_GFMS_DB_REACH_BC) {
394+
r_type == SWITCHTEC_GFMS_DB_REACH_UC) {
396395
ret = switchtec_set_pax_id(pax->dev, i);
397396
if (ret)
398397
continue;

0 commit comments

Comments
 (0)