]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0345c7d1d9b3e8e71a13625e76d698de5c806fb0
treef2e79edf070750d4b4e02bcd8f567ef196775c65
parentac61cbd35be66cb43372c1cab4a4b9ba8935e55b
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