]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: correct function number for some 82598 parts
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 16 Mar 2011 01:55:55 +0000 (01:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 14 Apr 2011 02:20:37 +0000 (19:20 -0700)
commit1f2f3e02a75ea2f0aa92b4ff6ed8014b50ab91e9
treecdcc703266672f4af4ab38afe3f2bbf4636f8a04
parent51536b8c1d4fde0dd5bdce791e5c2bf96de88b72
ixgbe: correct function number for some 82598 parts

Some 82598 parts have LAN0 disabled and LAN1 enabled and the LAN ID bits in
Device Status register report the NIC as having only LAN1 as enabled. This
causes ixgbe_set_lan_id_multi_port_pcie() to set bus->func = 1 which is
incorrect.

Force bus->func to 0 when LAN0 is disabled in the EEPROM.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Evan Swanson <evan.swanson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_82598.c
drivers/net/ixgbe/ixgbe_type.h