Module Name: src Committed By: msaitoh Date: Fri Jan 26 09:07:46 UTC 2018
Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c Log Message: CID-1427719: Integer handling issues (BAD_SHIFT). Print bus/slot info correctly on 82599_SFP_SF_QP(DID 0x154a) and 82599_QSFP_SF_QP(DID 0x1558). To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/dev/pci/ixgbe/ixgbe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ixgbe.c diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.119 src/sys/dev/pci/ixgbe/ixgbe.c:1.120 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.119 Thu Dec 28 06:10:01 2017 +++ src/sys/dev/pci/ixgbe/ixgbe.c Fri Jan 26 09:07:46 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.119 2017/12/28 06:10:01 msaitoh Exp $ */ +/* $NetBSD: ixgbe.c,v 1.120 2018/01/26 09:07:46 msaitoh Exp $ */ /****************************************************************************** @@ -2332,8 +2332,8 @@ get_parent_info: } /* ...and read the Link Status Register */ link = pci_conf_read(adapter->osdep.pc, adapter->osdep.tag, - offset + PCIE_LCSR); - ixgbe_set_pci_config_data_generic(hw, link >> 16); + offset + PCIE_LCSR) >> 16; + ixgbe_set_pci_config_data_generic(hw, link); display: device_printf(dev, "PCI Express Bus: Speed %s Width %s\n",