igb: Fix Tx hangs seen when loading igb with max_vfs > 7.
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 1 Jul 2010 13:38:40 +0000 (13:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2010 05:45:56 +0000 (22:45 -0700)
commitc0f2276f3601a96b29d4347c5938e9494e8e4e5d
treef2e79edf070750d4b4e02bcd8f567ef196775c65
parent5fa8517f038d51d571981fb495206cc30ed91b06
igb: Fix Tx hangs seen when loading igb with max_vfs > 7.

Check the value of max_vfs at the time of assignment of vfs_allocated_count.

The previous check in igb_probe_vfs was too late as by that time the rx/tx
rings were initialized with the wrong offset.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c