diff options
author | Mike Marciniszyn <mike.marciniszyn@qlogic.com> | 2012-02-25 20:45:50 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-02-25 20:45:50 -0500 |
commit | 520b3ee70527cb47f0b08ceb25ace02aed71eab7 (patch) | |
tree | 2441b4673d5440b4d2ee548d6c75dbc472b799f6 /drivers/infiniband | |
parent | a778f3fddc6fc2ed4c065f6e160d517a5959f949 (diff) |
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: Edward Mascarenhas <edward.mascarenhas@qlogic.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_mad.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c index 3b3745f261f0..c4ff788823b5 100644 --- a/drivers/infiniband/hw/qib/qib_mad.c +++ b/drivers/infiniband/hw/qib/qib_mad.c | |||
@@ -433,7 +433,6 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, | |||
433 | struct qib_pportdata *ppd; | 433 | struct qib_pportdata *ppd; |
434 | struct qib_ibport *ibp; | 434 | struct qib_ibport *ibp; |
435 | struct ib_port_info *pip = (struct ib_port_info *)smp->data; | 435 | struct ib_port_info *pip = (struct ib_port_info *)smp->data; |
436 | u16 lid; | ||
437 | u8 mtu; | 436 | u8 mtu; |
438 | int ret; | 437 | int ret; |
439 | u32 state; | 438 | u32 state; |
@@ -469,8 +468,7 @@ static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, | |||
469 | ibp->mkeyprot == 1)) | 468 | ibp->mkeyprot == 1)) |
470 | pip->mkey = ibp->mkey; | 469 | pip->mkey = ibp->mkey; |
471 | pip->gid_prefix = ibp->gid_prefix; | 470 | pip->gid_prefix = ibp->gid_prefix; |
472 | lid = ppd->lid; | 471 | pip->lid = cpu_to_be16(ppd->lid); |
473 | pip->lid = lid ? cpu_to_be16(lid) : IB_LID_PERMISSIVE; | ||
474 | pip->sm_lid = cpu_to_be16(ibp->sm_lid); | 472 | pip->sm_lid = cpu_to_be16(ibp->sm_lid); |
475 | pip->cap_mask = cpu_to_be32(ibp->port_cap_flags); | 473 | pip->cap_mask = cpu_to_be32(ibp->port_cap_flags); |
476 | /* pip->diag_code; */ | 474 | /* pip->diag_code; */ |