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)
commitc9130180a8dc48943f2a072acec4a53616a1f0ab
treecdcc703266672f4af4ab38afe3f2bbf4636f8a04
parent2ea5ea5fc4f4f1daa74708c2a14e364d8474812d
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