Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 520b3ee7 authored by Mike Marciniszyn's avatar Mike Marciniszyn Committed by Roland Dreier
Browse files

IB/qib: Avoid filtering LID on SMA portinfo



The current get portinfo handling filters the LID being sent,
changing zero to 0xffff.

This causes OpenSM to log excessive warning messages.

Reviewed-by: default avatarEdward Mascarenhas <edward.mascarenhas@qlogic.com>
Signed-off-by: default avatarMike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent a778f3fd
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -433,7 +433,6 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
	struct qib_pportdata *ppd;
	struct qib_pportdata *ppd;
	struct qib_ibport *ibp;
	struct qib_ibport *ibp;
	struct ib_port_info *pip = (struct ib_port_info *)smp->data;
	struct ib_port_info *pip = (struct ib_port_info *)smp->data;
	u16 lid;
	u8 mtu;
	u8 mtu;
	int ret;
	int ret;
	u32 state;
	u32 state;
@@ -469,8 +468,7 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
	      ibp->mkeyprot == 1))
	      ibp->mkeyprot == 1))
		pip->mkey = ibp->mkey;
		pip->mkey = ibp->mkey;
	pip->gid_prefix = ibp->gid_prefix;
	pip->gid_prefix = ibp->gid_prefix;
	lid = ppd->lid;
	pip->lid = cpu_to_be16(ppd->lid);
	pip->lid = lid ? cpu_to_be16(lid) : IB_LID_PERMISSIVE;
	pip->sm_lid = cpu_to_be16(ibp->sm_lid);
	pip->sm_lid = cpu_to_be16(ibp->sm_lid);
	pip->cap_mask = cpu_to_be32(ibp->port_cap_flags);
	pip->cap_mask = cpu_to_be32(ibp->port_cap_flags);
	/* pip->diag_code; */
	/* pip->diag_code; */